[WARN] org.mybatis.spring.mapper.ClassPathMapperScanner

项目启动时,mybatis报警信息如下:
[WARN] org.mybatis.spring.mapper.ClassPathMapperScanner.doScan( ClassPathMapperScanner.java:158 )
No MyBatis mapper was found in '[com.XXX.XXX.mapper]' package. Please check your configuration.
原因:
     org.mybatis.spring.mapper.MapperScannerConfigurer是扫描仓储类的接口,集成mybatis不是用接口方式实现的话,不需要配置
解决办法:
     在applicationContext.xml中找到MapperScannerConfigurer的配置,删除即可

转载于:https://www.cnblogs.com/angryorange/p/4832836.html

你可能感兴趣的:(java)