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

发布时间 2023-12-16 21:40:50作者: jiduoduo

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

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

 

解决:

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