Add a configuration to application.propertites:

spring.http.encoding.force=true
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
server.tomcat.uri-encoding=UTF-8
Copy the code

Note: sometimes, this configuration will be red, but it does not affect the function, it works! ;