Spring Boot + Mybatis Plus 整合——双剑合璧
前言 我前面为了自己的业务开发也写了一套SpringBoot+mybatis整合的自动代码生成工具,并实现了 lombok的使用 ,与 swagger 的整合,但是因为主要只考虑了,自己的编码习惯和业务需求,有很多不支持与问题,后续将持续完善。地址: 自动生成三层代码URL 今天就说说Spring Boot + Mybatis Plus 整合——双剑合璧: POM配置: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope> </dependency> <dependency>