org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'group_id' in 'class com.fangcun.group_assistant.pojo.Repair'

注意看:这里是group_id,这个字段应该跟实体类的字段名称是一样的才对!

nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for proper

而实体类中却是 groupId !

nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for proper

解决方法:

将mapper.xml文件中的group_id改为groupId即可。

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2022-01-01
  • 2021-12-07
  • 2021-06-15
  • 2021-08-17
  • 2021-04-07
  • 2021-09-11
猜你喜欢
  • 2021-07-13
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案