1.url链接设置字符编码
mysql.url=jdbc:mysql://127.0.0.1:3306/micro_class?characterEncoding=utf-8
2.数据库编码设置
查看数据库编码:show variables like 'character%';
SET character_set_database = utf8;
SET character_set_server = utf8;
1.url链接设置字符编码
mysql.url=jdbc:mysql://127.0.0.1:3306/micro_class?characterEncoding=utf-8
2.数据库编码设置
查看数据库编码:show variables like 'character%';
SET character_set_database = utf8;
SET character_set_server = utf8;