Mybatis中sqlmap的一个小错误

错误如下:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id' in 'class java.lang.Long';
网上百度了下,说要把传入参数改成_parameter,改后无效;
问了下边上同事,让我使用where标签,继续报错;
然后把<if test="id != null">if标签去掉,然后正常……
但是感觉这问题有点治标不治本,哪位知道具体是什么问题?Mybatis没具体细研究原理,麻烦各位大拿指导下

猜你喜欢

转载自manyouying.iteye.com/blog/2194435