如题,多模块下Mapper扫描失败:
原因:mapper-locations: classpath*:mybatis/**/*Mapper.xml
mapper文件存放在resources/system/mapper,resources/project/mapper下导致扫描不到

解决方法:
mapper-locations: classpath*:mybatis/*Mapper.xml
将mapper文件统一存到resources/mapper目录下
问题解决了一下午时间,试过各种方法,崩溃。。。
网友评论