here is no WRITEABLE property named
时间: 2023-08-21 16:12:39 浏览: 177
问题: There is no WRITEABLE property named 'studentId' in class 'com.ssi.model.Student'是什么意思?如何解决这个问题?
回答: 这个问题是指在类'com.ssi.model.Student'中找不到名为'studentId'的可写属性。\[1\]解决这个问题的方法有两种。第一种是修改JavaBean中的内容,确保在类中存在与属性名相同的可写属性,并且有对应的get和set方法。具体的解决方法可以参考上述提供的链接。第二种方法是修改sqlMap中的语句,确保属性名与数据库表中的列名一致。\[2\]根据具体情况选择其中一种方法进行处理即可。
#### 引用[.reference_title]
- *1* [resultMap使用不当导致出现There is no WRITEABLE property named 'student_id' in class '...](https://blog.csdn.net/yeweiouyang/article/details/24469421)[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^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Ibatis中报There is no READABLE property named错误](https://blog.csdn.net/weibkreuz/article/details/45505749)[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^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文