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,    因此,报告收到了错误的。

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

时间: 2024-08-08 09:01:01

spring mvc 错误摘要--。位。的相关文章

Spring MVC学习摘要

1. context:component-scan标签的use-default-filters属性的作用以及原理分析 http://www.cnblogs.com/hafiz/p/5875770.html 2. Spring和SpringMVC父子容器关系初窥 http://www.cnblogs.com/hafiz/p/5875740.html 3.五种方式让你在java中读取properties文件内容不再是难题 http://www.cnblogs.com/hafiz/p/5876243.

spring mvc 错误

<context:annotation-config />      <mvc:annotation-driven />

转转转![Spring MVC] - 500/404错误处理-SimpleMappingExceptionResolver

参考博客: http://www.cnblogs.com/dongying/p/6129937.html http://www.cnblogs.com/rollenholt/archive/2012/12/25/2832731.html http://cgs1999.iteye.com/blog/1547197 我在项目中的使用: 1)404找不到: web.xml中配置: <!-- 404错误 --> <error-page> <error-code>404</

Spring MVC自定义统一异常处理类,并且在控制台中输出错误日志

在使用SimpleMappingExceptionResolver实现统一异常处理后(参考Spring MVC的异常统一处理方法), 发现出现异常时,log4j无法在控制台输出错误日志.因此需要自定义一个继承至SimpleMappingExceptionResolver的 RrtongMappingExceptionResolver类,在RrtongMappingExceptionResolver中通过 log.error(ex.getMessage())的方式输出日志到控制台上.以下是具体的配

spring mvc 数据绑定 400错误

情景:使用在方法中绑定数据的时候,打开链接,出现400错误. @RequestMapping(value = "editItemSubmit") public String editItemSubmit(int id, Items item) { itemService.updateItemFromId(id, item); return "redirect:queryItemlList"; } public class Items { private int id

spring mvc 配置运行报错误

1 四月 06, 2015 10:51:18 上午 org.apache.catalina.startup.VersionLoggerListener log 2 信息: Server version: Apache Tomcat/8.0.14 3 四月 06, 2015 10:51:18 上午 org.apache.catalina.startup.VersionLoggerListener log 4 信息: Server built: Sep 24 2014 09:01:51 5 四月 0

Spring MVC 以.html为后缀名访问获取数据,报406 Not Acceptable错误。

如题,最近以spring mvc作为后台框架,前端异步获取数据时(.html为后缀名的访问方式),报406 Not Acceptable错误.当初都不知道啥原因,前后台都没报错就是返回不了数据,于是查了下http 406响应码:406 (SC_NOT_ACCEPTABLE)表示请求资源的MIME类型与客户端中Accept头信息中指定的类型不一致.下面请看出错的操作流程及代码: 1.先配置spring mvc 核心servlet (DispatcherServlet) 至web.xml中,其中配置

[Spring MVC] - 500/404错误处理

Spring MVC中404 找不到页面错误可以直接使用web.xml中配置: 在<web-app/>节点内加入: <error-page> <error-code>404</error-code> <location>/WEB-INF/views/errors/404.jsp</location> </error-page> 500的运行时错误,可以使用Spring MVC的SimpleMappingExceptionR

新建 Spring Mvc Web + Maven 的 maven 错误 (二)

新建项目后,可能由于哪边配置不正确,或也可能是编码问题,就有可能在创建初始就可能发生错误: 这是 pom.xml 中提示的错误,有的人说要删除 maven 的本地仓库位置:c:\用户[Users]\Administrator\.m2的文件夹,有的说只要下载的包即要: 这里我们重建本项目构建空间的 maven 仓库位置; Maven配置 当然你本机或服务器,应当要有 maven 的文件包,maven 不必安装,只需要拷贝到适当的位置即可,这里用的 3.0.4版: 修改配置 1. 首先在本地选择或创