Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'likeName' in 'class java.lang.String'
时间: 2023-12-30 15:42:26 浏览: 124
报错信息中指出,在类java.lang.String中没有名为'likeName'的属性,所以无法找到对应的getter方法。同样的错误也在其他类中出现了,如com.lz.platform.trauma.api.interfaces.dto.task.UserTaskqueryDTO。因此,解决这个问题的方法就是在相应的类中添加名为'likeName'的属性,并提供对应的getter方法。在java.lang.String类中添加属性是不可行的,因为它是Java的内置类。如果是自定义的类,则需要在类定义中添加对应的属性和getter方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [mybatis报错:org.apache.ibatis.reflection.ReflectionException: There is no getter for property name](https://blog.csdn.net/qq_46096788/article/details/126726481)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [org.apache.ibatis.reflection.ReflectionException: There is no getter for property named](https://blog.csdn.net/qq_45656077/article/details/129178272)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文