当前位置: 代码迷 >> 综合 >> 原来使用mybatis-spring-boot-starter的项目接入mybatisplus过程
  详细解决方案

原来使用mybatis-spring-boot-starter的项目接入mybatisplus过程

热度:42   发布时间:2023-10-16 15:48:55.0
  • 注释掉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

  相关解决方案