阅读背景:

Mybatis中传参包There is no getter for property named 'XXX' in 'class java.lang.String'

来源:互联网 

一、发现问题

<select id="queryStudentByNum" resultType="student" parameterType="string"> select num,name,phone from student <where> <if test = " num!=null and num!='' "> AND num = #{num} </if> </where> </select> Mybatis查询传入一个字符串传参数,报There is no getter for property named 'num' in 'class java.lang.String'。<select id="queryStudentByNum"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: