zhangxiaocc 2020-06-16
第一次下载或者打开tomcat可能控制台出现中文乱码问题以8.5为例
4host-manager.org.apache.juli.AsyncFileHandler.level = FINE
4host-manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.
4host-manager.org.apache.juli.AsyncFileHandler.encoding = UTF-8
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter
java.util.logging.ConsoleHandler.encoding = GBK
打开后大约在50行左右找到 java.util.logging.ConsoleHandler.encoding = UTF-8 修改为 GBK;
重新启动Tomcat就可以了