Invalid bound statement (not found)出现原因和解决方法
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/9e9feb5e2cbfaae5103f12cc67d2ad29.png)
出现的原因:mapper接口和mapper.xml文件没有映射起来。
解决方法:
1、.mapper.xml中的namespace和实际的mapper文件是否一致
2、检查mapper接口中的方法名与mapper.xml文件中的id是否一致
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/2cf2b77d62f439c3295923172fc3885e.png)
推荐大家去下载MyBatisX插件,可以自动实现mapper接口到mapper.xml之间的映射,既能提高效率,又能避免一些粗心导致的错误
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/2ae27d576c178a094368f33f1c01aed9.png)
下载方法:打开idea–>file–>settings–>Plugind,然后再搜索框中搜索即可,然后点击install。