配置tomcat在VM options添加-Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8

重启后控制台catalina.out 文件输出的中文为乱码,

修改tomcat下的模板编码

bin/catalina.bat 文件添加如下配置:

JAVA_OPTS="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"

tomcat的log日志乱码解决方案

如果还是乱码请参考:https://www.cnblogs.com/liaoyanglong/p/6639039.html

相关文章:

  • 2021-09-11
  • 2021-12-03
  • 2022-12-23
  • 2021-08-07
  • 2022-01-11
  • 2021-06-11
  • 2022-12-23
  • 2021-08-08
猜你喜欢
  • 2021-05-14
  • 2021-10-14
  • 2022-12-23
  • 2021-04-16
  • 2021-11-27
  • 2021-05-17
  • 2021-05-06
相关资源
相似解决方案