处理报错:There is no getter for property named ‘xxx‘ in ‘class com.xxx.xxx.domain.xxx‘“,

后端报错:There is no getter for property named ‘xxx’ in ‘class com.xxx.xxx.domain.xxx’",

{
“msg”: “nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘xxx’ in ‘class com.xxx.xxx.domain.xxx’”,
“code”: 500
}

问题:实体类中的字段和请求的参数不匹配

解决:查找实体类中的字段,确保大小写都一样,仔细检查一下,然后还有XML文件中的也要对应。

你可能感兴趣的:(开发过程问题,java,数据库)