nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'suserid' in 'class com.chy.haishangbook.entity.Commentarea'
错误该如何解决?
查看 使用过suserid字段的Mapper.xml文件.
检查后发现,图中标红的地方,suserid写错了,我的实体类中是sUserid ,U是大写的,更改之后,问题就解决了.
你的不一定会是同样的字段出错,但请你仔细检查字段名和数量是否匹配.