MyBatis-Spring-Boot
MyBatis-Spring-Boot copied to clipboard
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
我按你的方法及框架版本搭架环境,运行时总是显示错误:
Exception in thread "main" org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): org.dtjys.mapper.UserMapper.getById
at org.apache.ibatis.binding.MapperMethod$SqlCommand.
如果使用通用Mapper提供的方法就可以正常执行,但是自己写的方法,就会提示上述错误
这个问题目前依然存在
注意看你 tk.xxx 的那个配置,不要用markerinterface方式。
可能是 idea的编译的问题 http://www.cnblogs.com/woshimrf/p/5138726.html
本项目已经修改,原理参考:Spring Boot - 配置排序依赖技巧
同,请问有人解决了吗?
问题早解决了。。@CherryZY 用最新版本试试 2.0.3-beta1
我最近也遇到一样的问题 在IDEA下运行的时候能正常映射到对应XML文件里的SQL,但是打包部署到服务器上就不行了,就会报Invalid bound statement (not found):