首先引入pom坐标

 <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>1.2.0</version>
        </dependency>

创建包

首先需要在主类中

@MapperScan("cn.xx.mapper")  

springboot 对mybatis配置

其次配置好xml位置 :

springboot 对mybatis配置

相关文章:

  • 2021-05-13
  • 2022-12-23
  • 2021-12-01
  • 2021-11-18
  • 2021-10-21
  • 2021-05-29
  • 2021-11-20
  • 2022-01-12
猜你喜欢
  • 2022-02-22
  • 2021-10-24
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案