com.jfinal.plugin.activerecord.ActiveRecordException: You can't update model without Primary Key, id can not be null.

jfinal更新信息的时候,返回错误:

com.jfinal.plugin.activerecord.ActiveRecordException: You can't update model without Primary Key, id can not be null.

 

解决:

查看自己设置的ID,是不是与数据库中表的ID一致,注意大小写。

posted @ 2023-12-16 21:38  jiduoduo  阅读(113)  评论(0编辑  收藏  举报