Log information:
INFO 2015-01-13 10:44:36,078 org.springframework.beans.factory.xml.XmlBeanDefinitionReader:Loading XML bean Definitions from class path resource [Org/springframework/jdbc/support/sql-error-codes.xml]
INFO 2015-01-13 10:44:36,140 org.springframework.jdbc.support.SQLErrorCodesFactory:SQLErrorCodes loaded: [DB2, Derby , H2, HSQL, Informix, Ms-sql, MySQL, Oracle, PostgreSQL, Sybase]
Console output:
Org.springframework.jdbc.UncategorizedSQLException:
# # # Error updating database. Cause:java.sql.SQLException:Incorrect string value: ' \xe9\x83\xa8\xe9\x97\xa8 ... ' for column ' Deptname ' at row 1
# # # The error may involve cn.jbit.mybatisdemo.dao.ideptdao.insertdept-inline
# # # The error occurred while setting parameters
# # Sql:insert into dept (deptname,location) VALUES (?,?)
# # # Cause:java.sql.SQLException:Incorrect String value: ' \xe9\x83\xa8\xe9\x97\xa8 ... ' for column ' Deptname ' at row 1
;
The encoding format of database/table/field does not conform;
MySQL added Chinese data failed