500报错:ReflectionException: There is no setter for property named 'sicon' in 'class com.pikaqiu.health.bean.SubMenu'"

报错信息:"timestamp": "2023-03-27T09:07:50.958+00:00",


  • 出错原因:首先看报错信息中这么写到:
    "message": "nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'sicon' of 'class com.pikaqiu.health.bean.SubMenu' with value 'icon-user-list' Cause: org.apache.ibatis.reflection.ReflectionException: There is no setter for property named 'sicon' in 'class com.pikaqiu.health.bean.SubMenu'",
  • 这说明多表查询中关系映射写错了,没有与sicon对应的属性,如图

    在实体类SubMenu中,sicon(查询时候的别名)存储的名称为icon,把这里改正即可,改成icon
posted @ 2023-03-27 17:17  折诗  阅读(114)  评论(0编辑  收藏  举报