解决方案:
Mapper配置文件*.xml放在resources下,新建mapper目录
application.properties文件中
mybaits.mapperLocations=classpath*:mapper/*.xml
如果xml文件没被编译,target目录下没有xml文件,IDEA右侧maven
Lifecycle clean compile install 试一试,我用install解决
解决方案:
Mapper配置文件*.xml放在resources下,新建mapper目录
application.properties文件中
mybaits.mapperLocations=classpath*:mapper/*.xml
如果xml文件没被编译,target目录下没有xml文件,IDEA右侧maven
Lifecycle clean compile install 试一试,我用install解决