解决SpringBoot中org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)报错

问题描述

解决SpringBoot中org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)报错
原因:
缺少配置,没有扫描到UserMapper.xml配置文件。
分析:
通过查询发现可能是yml文件中xml文件路径指定错误。检查自己的yml配置文件发现果然是路径错误。
解决SpringBoot中org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)报错

解决办法

修改mapper.xml配置文件路径,即可正常运行
解决SpringBoot中org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)报错

相关文章: