问答详情
源自:3-3 datasource和sessionfactorybean的配置

updateArea()测试提示:nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'PRIORITY'

nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'PRIORITY',请问有知道怎么解决的吧,百度没找到答案。mabatis-config和老师的一模一样

提问者:慕村9107202 2018-07-03 20:25

个回答

  • 慕村9107202
    2018-07-03 20:49:03

    找到原因了,原来是mapper里面的AreaDao的update方法中

    <if test="PRIORITY != null">PRIORITY = #{priority},</if>之前是这么写的,
    改成<if test="priority != null">PRIORITY = #{priority},</if>就行了