org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.demo.dao.UserDa
2019-03-16 21:07
549 查看
关于application.yml说明:
当程序启动后,页面访问报500错误,如图1
在进行以下操作之前请先检查mapper.xml的namespace配置是正确的,以及接口和xml的方法名是对应的。
图1
后台报“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.demo.dao.UserDao.getUser”,如图2
图2
请检查application.yml配置,此时配置是错误的,如图3
图3
正确的配置如图4
出现这种问题的原因是因为yml文件是树状结构,去掉空格是不行的。yml文件key:后面都有一个空格而properties文件后面没有。注意:如果yml和properties文件都存在相同目录下,那么只执行properties文件。
相关文章推荐
- 【spring boot Mybatis】报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.newhope.interview.dao.UserMapper.add
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.yj.dao.TrailerA
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.yolly.platform.
- idea报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.money.*
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.superr.powerful
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):解决mbatis的xml与dao不在一起
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.png.mapper.User
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zzq.springboot.
- 关于mybatis的org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- 关于mybatis “org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)” 错误的问题。
- 报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 解决过程
- spring boot 整合mybatis org.apache.ibatis.binding.BindingException: Invalid bound statement(not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常解决方案
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误记录
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- springboot配置时出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)