错误:

Maven项目org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): XXX解决方法

分析:

target中的Customermapper.class和Customermapper.xml都应该在mapper文件夹下
Maven项目org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): XXX解决方法
正确应该是这样的:
Maven项目org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): XXX解决方法

解决:

由于在resources下面不能创建package,只能创建文件夹Directory,重点(文件夹里面不能以"."的形式),
Maven项目org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): XXX解决方法
所以**不能**这样写
Maven项目org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): XXX解决方法
这样会在根目录创建一个 “ com.young.mapper ” 带 “ . ” 的文件夹
Maven项目org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): XXX解决方法
正确写法应该是 使用斜杠 或者一级一级创建:
Maven项目org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): XXX解决方法

效果:

Maven项目org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): XXX解决方法

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2021-05-14
  • 2021-04-26
猜你喜欢
  • 2021-08-21
  • 2021-10-26
  • 2021-09-01
  • 2022-02-22
  • 2021-11-15
  • 2021-12-16
相关资源
相似解决方案