spring boot 集成mybatis后扫描不到xml
① 首先查看mapper接口跟mapper.xml的映射关系② 是否加了注解@MapperScan③ mapper-locations是否配置正确④ 如果xml文件是放在src/main/java下需在 pom.xml 下配置<build><resources> <resource> <directory>src/main/java</directory> <includes>
原创
2020-07-13 09:19:51 ·
438 阅读 ·
0 评论