All exceptions are displayed as follows:
Org. springframework. Orm. hibernate3.hibernatejdbcexception: JDBC exception on Hibernate data access; Nested exception is org. hibernate. Exception. genericjdbcexception: cocould not execute JDBC batch update
JDBC generation exception occurs after I modify my. ini file of mysql5.0.
Description:
(1) the MySQL database does not support Chinese display;
If the database does not support Chinese characters, an exception occurs. The solution is:
1. Find the MySQL configuration file my. ini.
2. Modify the encoding settings to default-character-set = gb2312.
3. Restart MySQL
4. Drop the original database Latin1
5. Create Database
6. initialize the test unit
(2) the MySQL database supports Chinese display, but Chinese insertion and update operations are not allowed in my project.Org. springframework. Orm. hibernate3.hibernatejdbcexception: JDBC exception on Hibernate data access; Nested exception is org. hibernate. Exception. genericjdbcexception:
Cocould not execute JDBC batch update
Solution:
TomcatCache cleanup and restart the server. OK.