mybati报错ReflectionException
报错信息
nested exception is org.apache.ibatis.reflection.ReflectionException:
There is no getter for property named 'xxx' in 'class com.xxx.aaaa.pojo.bbb'
原因是description=#{reports.xxx.description}中多加了xxx.,所以会去解析有没有这个属性。吸取教训,做事需要仔细。
@Update("update xxx.reports set reportname=#{reports.reportname}, description=#{reports.xxx.description}, rsource=#{reports.rsource}," +
"rgetrate=#{reports.rgetrate},createdate=#{reports.createdate},isuse=#{reports.isuse},icobase64=#{reports.icobase64}" +
" where rid=#{reports.rid}")