There is no getter for property named 'id' in 'class com.baomidou.mybatisplus.core.conditions.query.QueryWrapper'
时间: 2023-09-25 12:14:14 浏览: 226
使用Mybatis遇到的there is no getter异常
引用\[1\]、\[2\]和\[3\]中提到的错误信息都是关于MyBatis中使用${}或#{}时出现的ReflectionException异常,提示在指定的类中没有名为'id'的属性的getter方法。根据你提供的问题背景和错误信息,你遇到的问题是在com.baomidou.mybatisplus.core.conditions.query.QueryWrapper类中没有名为'id'的属性的getter方法。这个错误可能是由于你在使用QueryWrapper时,使用了一个不存在的属性名'id'导致的。请检查你的代码,确保在QueryWrapper中使用的属性名是正确的。
#### 引用[.reference_title]
- *1* [解决mybatis中用${}或#{}报错:ReflectionException: There is no getter for property named XX class](https://blog.csdn.net/Caojian_0/article/details/127082591)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [mybatis 报There is no getter for property named 'id' in 'class java.lang.Integer' 此类错误-解决方式](https://blog.csdn.net/qq_35298582/article/details/101002068)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id' in 'cla](https://blog.csdn.net/broccoli2/article/details/79224111)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文