Modify application.properties
spring.http.encoding.force=true
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
server.tomcat.uri-encoding=UTF-8
Change the mysql configuration file /etc/my.cnf.
[mysqld]
character-set-server=utf8
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
Check to see if it's a mysql problem.
cmd
mysql
select * from sys_user
The configuration is all utf8, and the query is garbled.
Then you can look at the imported xx.sql file
Add under the line use xxxx;
set names "utf8";