关于(Incorrect string value: '\xF0\x9F\x8E\xBE' for column 'xxx' at row)报错

  

### Cause: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x8E\xBE' for column 'HANDLER_NAME' at row 1
; uncategorized SQLException; SQL state [HY000]; error code [1366]; Incorrect string value: '\xF0\x9F\x8E\xBE' for column 'HANDLER_NAME' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xF0\x9F\x8E\xBE' for column 'HANDLER_NAME' at row 1

检查数据库 查看数据库字段编码

有的网名占4个字节编码 看看数据库编码 是否支持存储  比如:utf8 ---> utf8mb4 

posted @ 2020-06-17 10:17  ±小马哥  阅读(586)  评论(0编辑  收藏  举报