其他分享
首页 > 其他分享> > mybati报错ReflectionException

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}")

标签:mybati,description,ReflectionException,xxx,reports,报错,rgetrate,rid
来源: https://www.cnblogs.com/javaupup/p/14632063.html