Cause: java.sql.SQLException: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (utf8mb4_ge

出现的问题如下

 初步判断应该是数据表的字符集与java不匹配,或者不支持

show variables like 'character_set_%';

 查询字符使用的类型

 最后按照idea报错的提示 把latin1字符集修改为utf8mb4_general_ci就完成了

修改完之后重启项目

猜你喜欢

转载自blog.csdn.net/m0_72435337/article/details/131782480