So follow the steps from the bottom of the system to the application settings to pay attention to the screening code settings
1. System code
cat /etc/sysconfig/i18n 或 echo $LANG
Shows as GBK, no problem.
2. Check the encoding settings in the Tomcat configuration file. There are no encoding items set
in web.xml and logging.properties , so they should be the default settings. 3. Add "-Dfile.encoding=GBK -Dsun.jnu.encoding=GBK" to the Java reference parameters referenced by JDK, add the above parameters to the JAVA_OPTS variable in Catalina.sh, restart Tomcat, and it's OK.