公司动态
解决main No MyBatis mapper was found in 的警告
在集成Spring mybaits时出现以下警告org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.main No MyBatis mapper was found in com..dao.impl package. Please check your configuration.出现以上情况是因为你的配置文件写多了这一段bean classorg.mybatis.spring.mapper.MapperScannerConfigurer property namebasePackage valuecom.lanyuan.dao.impl / /bean亲爱吊丝们把它删除吧原因是org.mybatis.spring.mapper.MapperScannerConfigurer是扫描仓储类的接口我不是用接口方式实现管理的所把那段删除便可