spring mvc 报错汇总--点滴。。

缺乏、安全感 2022-08-13 19:51 313阅读 0赞

1.。。。identifier of an instance of org.szgzw.ent.profile.baseinfo.enterprise.EnterpriseEntity was altered from 2c90e4da49514c750149515eb56f0003 to undefined; nested exception is org.hibernate.HibernateException: identifier of an instance of org.szgzw.ent.profile.baseinfo.enterprise.EnterpriseEntity was altered from 2c90e4da49514c750149515eb56f0003 to undefined

注意本人这里是undedined ,在搜索中发现该类似错误有好多,如:not null from 11221 to 31211

我这里是undefined 。

其实这里报这个错的原因是,我提交表单过来时,有一个字段 在对应的controller 中没有去接收它。

例如。表单中有。

而我在controller中没有用@RequestParam(value = “entId”, required = true) String entId, 这个去接收因而报该错。

发表评论

表情:
评论列表 (有 0 条评论,313人围观)

还没有评论,来说两句吧...

相关阅读