Ibatis 常见错误

1、提示 This SQL map does not contain a MappedStatement named funcname(你调用的方法名)

答:a.请检查  funcname是否有存在重复,或者是否没有这个(惨痛的教训!),一般这个 方法名必须不能跟别的xml里的方法一致,所以方法名要唯一

      b.继第一个问题,发现还是不行,那么去你项目下找一找你当前sql存在的xml文件 。竟然发现多了1个同名xml文件,真正操作就是这个xml。

2、提示如下

- Check the parameter mapping typeHandler attribute '' (must be a ITypeHandlerCallback implementation).
- The error occurred in <sqlMap resource="Maps/FrameWork_TableField.config" xmlns="http://ibatis.apache.org/dataMapper" />. 
- Check the vs9.entity.FrameWork_TableName.Select.

答:方法名已经存在,查找下此MAP的 namespace 是否跟其他map重复,或者   此MAP里的  方法是否重复,如:xx.getmodel  

原文地址:https://www.cnblogs.com/wdw31210/p/3014072.html