不多說,直接上排查方法:
步驟
1、pom 引入 依賴
mybatis-spring-boot-starter
2、啟動類中 注解掃描mapper接口
@MapperScan(basePackages = "com.xxx.mapper")
3、配置文件application.properties中介入xml地址
mybatis.mapper-locations=classpath:mapper/*.xml
不多說,直接上排查方法:
步驟
1、pom 引入 依賴
mybatis-spring-boot-starter
2、啟動類中 注解掃描mapper接口
@MapperScan(basePackages = "com.xxx.mapper")
3、配置文件application.properties中介入xml地址
mybatis.mapper-locations=classpath:mapper/*.xml
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。