我的MYSQL的编码配置是没有什么问题的!。。但是当我在WEB程序中往MySQL中添加数据时他就是会报错!在浏览器中的错误是:
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Could not execute JDBC batch update; uncategorized SQLException for SQL [insert into users (firstname, lastname, age, id) values (?, ?, ?, ?)]; SQL state [HY000]; error code [1366]; Incorrect string value: '\xE9\xA9\xAC\xE9\xAB\x98' for column 'firstname' at row 1; nested exception is java.sql.BatchUpdateException: Incorrect string value: '\xE9\xA9\xAC\xE9\xAB\x98' for column 'firstname' at row 1
。。。。。。。。
java.sql.BatchUpdateException: Incorrect string value: '\xE9\xA9\xAC\xE9\xAB\x98' for column 'firstname' at row 1
后台没有错误。。我测试了一下我的代码是没有问题的!添加的数据不是乱码!
这个我的是哪里错误呀!