修改catalina.sh文件:

vim /tomcat/bin/catalina.sh

 

加入一行:

JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF8 -Duser.timezone=GMT+08"

 

重启Tomcat

 

相关文章: