mysql报错java.sql.SQLException: Incorrect string value: 'XXX' for column 'content' at row 1

虽然说报错说是字符
java.sql.SQLException: Incorrect string value: '\xE6\x94\xB6\xE9\x9B\x86...' for column 'content' at row 1
但实际就是因为字符被截取,达不到utf8的格式,然后就出错
反正把字符限制放大,就可以正常保存了!

你可能感兴趣的:(mysql报错java.sql.SQLException: Incorrect string value: 'XXX' for column 'content' at row 1)