idea整合springboot和mybatis报错——org.apache.ibatis.binding.BindingExceptionInvalid bound statement

解决方案:

Mapper配置文件*.xml放在resources下,新建mapper目录

 

application.properties文件中

mybaits.mapperLocations=classpath*:mapper/*.xml

 

如果xml文件没被编译,target目录下没有xml文件,IDEA右侧maven

Lifecycle clean compile install 试一试,我用install解决

猜你喜欢

转载自blog.csdn.net/zflb2008/article/details/92832604