Tomcat 日志(控制台)中文乱码解决方法

Tomcat 日志(控制台)中文乱码解决方法

  1. 打开Tomcat安装目录下的 apache-tomcat-9.0.14-windows-x64/conf/logging.properties
    打开Tomcat安装目录下的 apache-tomcat-9.0.14-windows-x64/conf/logging.properties
  2. 修改/添加语句:java.util.logging.ConsoleHandler.encoding = GBK
    修改/添加语句:java.util.logging.ConsoleHandler.encoding = GBK
  3. 重新启动 Tomcat