首页 > 技术文章 > Invalid bound statement (not found):.....sysFunctionDao.getSysFunctionsById...(MapperMethod.ja

feiZhou 2017-08-09 09:51 原文

 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 
 cn.xiniu.core.dao.function.SysFunctionDao.getSysFunctionsById
    at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:189)

原因:
1dao接口写的方法和映射文件中的方法名称不对
2 Dao的方法返回值是List,而select元素没有正确配置ResultMap
3mapper的namespace写的不对
4dao层的文件路径和xml的文件路径不一致

推荐阅读