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和老師的一模一樣
2018-07-03
找到原因了,原來是mapper里面的AreaDao的update方法中
<if?test="PRIORITY?!=?null">PRIORITY?=?#{priority},</if>之前是這么寫的, 改成<if?test="priority?!=?null">PRIORITY?=?#{priority},</if>就行了