### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.
; ]; Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.] with root cause
com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.
myBatis 自動(dòng)生成的json類型為OTHER,對(duì)象類型為 Object,
發(fā)現(xiàn)myBatis現(xiàn)在并不支持JOSN,保存報(bào)錯(cuò)
解決辦法
將對(duì)象換成 String 類型,mapper 文件里換成對(duì)應(yīng)的VARCHAR類型,toJSONString保存


?保存成功
