spring mvc 错误摘要--。位。

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 中没有去接收它。

比如。

表单中有。<input type="hidden" name="enterprise.uuid" value="${entId }">

           而我在controller中没实用@RequestParam(value = "entId", required = true) String entId,    因此,报告收到了错误的。


版权声明:本文博主原创文章,博客,未经同意不得转载。

原文地址:https://www.cnblogs.com/lcchuguo/p/4875199.html