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

 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中配置的方法名一定要一致,否則報錯如上



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章