原来使用mybatis-spring-boot-starter的项目接入mybatisplus过程
-
注释掉mybatis-spring-boot-starter
<!-- <dependency>--> <!-- <groupId>org.mybatis.spring.boot</groupId>--> <!-- <artifactId>mybatis-spring-boot-starter</artifactId>--> <!-- <version>1.3.0</version>--> <!-- </dependency>-->
-
加入
<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.3.1</version> </dependency>
可能原来写的xml会产生not bound 问题
解决方案
增加配置 mybatis-plus: mapper-locations: classpath:mybatis/mapper/*.xml
上一篇:
多线程四大经典案例
下一篇:
Java: String类(构造方法)