您的位置:首页 > 运维架构 > Apache

mybatis使用bug:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

2016-06-15 09:43 946 查看
 Invalid bound statement (not found): hsf.fmhealth.dao.user.XXXDao.queryXX

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): hsf.XX.dao.user.XXDao.queryXX

  at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:189) ~[mybatis-3.2.8.jar:3.2.8]

  at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:43) ~[mybatis-3.2.8.jar:3.2.8]

  at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58) ~[mybatis-3.2.8.jar:3.2.8]

  at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51) ~[mybatis-3.2.8.jar:3.2.8]
  at com.sun.proxy.$Proxy86.queryXX(Unknown Source) ~[na:na]

xml中id和dao中配置的方法名一定要一致,否则报错如上
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: