org.hibernate.exception.DataException: Could not execute JDBC batch update
今天向mysql中插入数据出现很奇怪问题
User p1=new User();
p1.setName("测试数据");
p1.setPassword("12345");
System.out.println("insert suceess");
当p1.setName("")中不为中文,运行正常,当为中文就出错org.hibernate.exception.DataException: Could not execute JDBC batch update
说明p1.setName("")为mysql中user表对应字段的值