HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

时间:2021-08-31 17:08:59

今天整合ssm框架 时 遇到的问题 困扰我好长时间     原因就是  mapper文件 没有被加载进来

但是 为什么没有被加载进来呢  因为中间的配置文件出了一些问题

网上大多数说法是   在pom文件下 加入

HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

可以加载mapper 文件   但是我的还是没有成功   所以总结方法如下

看看自己的mapper  文件的  namespace的地址 是不是写错了

映射地址 看看是否有误

最后    如果你是用这种方式创建的 mapper.xml 地址文件   那么恭喜你  以上方法对你无效

HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

创建mapper.xml  地址文件的时候 一定  一定要是用 package 如果你要是用file创建  你怎么改 都没用 。。 我就是犯了这个错误  哎      而且 file和 package 创建的文件夹 也不一样  请一定要注意 不要犯我这样的低级错误

HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)