tomcat启动控制台乱码
Posted ypfbolg
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tomcat启动控制台乱码相关的知识,希望对你有一定的参考价值。
16-Jul-2019 16:19:30.450 璀﹀憡 [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]Server/Service/Connector Setting property ‘encoding‘ to ‘utf8‘ did not find a matching property. 16-Jul-2019 16:19:30.514 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏈嶅姟鍣ㄧ増鏈?: Apache Tomcat/9.0.19 16-Jul-2019 16:19:30.514 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏋勫缓: Apr 12 2019 14:22:48 UTC 16-Jul-2019 16:19:30.514 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.19.0 16-Jul-2019 16:19:30.514 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 16-Jul-2019 16:19:30.515 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.鐗堟湰: 10.0 16-Jul-2019 16:19:30.515 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 缁?.閫?: amd64 16-Jul-2019 16:19:30.515 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 鐜鍙橀噺: C:\Program Files\Java\jdk1.8.0_131\jre
解决办法:
打开tomcat目录下conf/logging.properties文件,修改java.util.logging.ConsoleHandler.encoding = UTF-8 为
java.util.logging.ConsoleHandler.encoding = GBK或者GB2312
以上是关于tomcat启动控制台乱码的主要内容,如果未能解决你的问题,请参考以下文章