如題,多模塊下Mapper掃描失斂惶取:
原因:mapper-locations: classpath*:mybatis/**/*Mapper.xml
mapper文件存放在resources/system/mapper江兢,resources/project/mapper下導(dǎo)致掃描不到
網(wǎng)絡(luò)圖片
解決方法:
mapper-locations: classpath*:mybatis/*Mapper.xml
將mapper文件統(tǒng)一存到resources/mapper目錄下
問題解決了一下午時間,試過各種方法,崩潰抒痒。。颁褂。