出现的问题如下
初步判断应该是数据表的字符集与java不匹配,或者不支持
show variables like 'character_set_%';
查询字符使用的类型
最后按照idea报错的提示 把latin1字符集修改为utf8mb4_general_ci就完成了
修改完之后重启项目
出现的问题如下
初步判断应该是数据表的字符集与java不匹配,或者不支持
show variables like 'character_set_%';
查询字符使用的类型
最后按照idea报错的提示 把latin1字符集修改为utf8mb4_general_ci就完成了
修改完之后重启项目