automatically generating single-table operation tk.mybatis

1. Create a new project, see above a

https://mvnrepository.com/artifact/tk.mybatis/mapper-spring-boot-starter/2.1.5

Add tk.mybatis plug-in dependencies

 

 Configuration data sources and tkmybatis

 

  3. The entity class

 

  4. Add basemapper

 

 5. Add UserMapper

 

 6. Test results

 

 

 

 

Guess you like

Origin www.cnblogs.com/lql6/p/12011986.html