org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [S1000]; error code [0]; Packet for query is too large (1211 > 1024). You can change this value on the server by setting the max_allowed_packet' variable.; nested exception is org.hibernate.exception.GenericJDBCException: Packet for query is too large (1211 > 1024). You can change this value on the server by setting the max_allowed_packet' variable
当遇到这种方法我这里有一个简单易改的方法: