做项目时忘记写下这句了request.setCharacterEncoding("UTF-8");
结果报了以下错误:
org.hibernate.exception.DataException: Could not execute JDBC batch update
Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for column 'sex' at row 1
Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'sex' at row 1
记录备用