解决方法"/>
BindingException: Invalid bound statement (not found):的解决方法
第一步,查看mapper文件是否错误,主要看以下两点
第二步,查看target中有没有对应的mapper,如果没有,有以下三种解决方式
1.将mapper文件复制到target中
2.将mapper文件放到resource目录中
3.对pom文件和application.yml进行配置
<!-- 项目打包时会将java目录中的*.xml文件也进行打包 --><build><resources><resource><directory>src/main/java</directory><includes><include>**/*.xml</include></includes><filtering>false</filtering></resource></resources></build>
在application.yml中配置
mybatis-plus:mapper-locations: classpath:com/atguigu/eduservice/mapper/xml/*.xml
更多推荐
BindingException: Invalid bound statement (not found):的解决方法
发布评论