AbstractHandlerExceptionResolver.java:194 |org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver |Resolved exception caused by handler execution: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
解决:
项目打包时会将java目录中的*.xml文件也进行打包
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
在Spring Boot配置文件中添加配置 #配置mapper xml文件的路径 mybatis-plus.mapper-locations=classpath:com/xxx/xxx/mapper/xml/*.xml