Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException
Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ''在ibatis中
<select id="getCountBySrId"resultType="int">
select count(sr_id) from mega_mms_sr_main_conf_tab
<where>
<if test="srId !=null and srId !='' ">
sr_id likeCONCAT('%', #{srId}, '%')
</if>
</where>
</select>
标签,最初传值的时候传入了一个String类型的srId,就报了如上的错误,查阅了资料后,将传入的变量更换为javaBean,问题就解决了。标记一下,有时间再查查为什么。
页:
[1]