Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): org.conjure.mapper.CategoryMapperCustom.getSubCatList
正在回答 回答被采纳积分+1
1. mapper namespace 确认无误
namespace="org.conjure.mapper.CategoryMapperCustom"
Copy Reference 得到 "org.conjure.mapper.CategoryMapperCustom"
2.
<select id="getSubCatList" ... 对比
public List<CategoryVO> getSubCatList(Integer rootCatId);
3.
resultMap="myCategoryVO" 对比
<resultMap id="myCategoryVO" type="org.conjure.pojo.vo.CategoryVO">
4.
mapper-locations: mapper/*.xml 改为 mapper-locations: classpath:org/conjure/mapper/*.xml
结果还是一样报错:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): org.conjure.mapper.CategoryMapperCustom.getSubCatList
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星