Tomcat启动乱码

旧街凉风 提交于 2020-02-28 23:57:44

Tomcat启动乱码

旂敤绋嬪簭閮ㄧ讲鍒扮洰褰?[C:\Users\Administrator\Desktop\Servlet\apache-tomcat-8.5.50-windows-x64\apache-tomcat-8.5.50\webapps\examples]
28-Feb-2020 22:57:20.486 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Users\Administrator\Desktop\Servlet\apache-tomcat-8.5.50-windows-x64\apache-tomcat-8.5.50\webapps\examples] has finished in [2,594] ms
28-Feb-2020 22:57:20.486 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 鎶妛eb 搴旂敤绋嬪簭閮ㄧ讲鍒扮洰褰?[C:\Users\Administrator\Desktop\Servlet\apache-tomcat-8.5.50-windows-x64\apache-tomcat-8.5.50\webapps\host-manager]
28-Feb-2020 22:57:20.580 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Users\Administrator\Desktop\Servlet\apache-tomcat-8.5.50-windows-x64\apache-tomcat-8.5.50\webapps\host-manager] has finished in [94] ms
28-Feb-2020 22:57:20.580 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 鎶妛eb 搴旂敤绋嬪簭閮ㄧ讲鍒扮洰褰?[C:\Users\Administrator\Desktop\Servlet\apache-tomcat-8.5.50-windows-x64\apache-tomcat-8.5.50\webapps\manager]

 

处理方式:
打开tomcat目录下conf子目录,找到logging.properties
修改logging.properties中的参数

java.util.logging.ConsoleHandler.encoding = GBK

重启就解决了

 

28-Feb-2020 23:19:24.048 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本:               10.0
28-Feb-2020 23:19:24.048 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构:                  amd64
28-Feb-2020 23:19:24.048 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量:         C:\JDK\jdk1.8.0_77\jre
28-Feb-2020 23:19:24.048 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 版本:              1.8.0_77-b03
28-Feb-2020 23:19:24.048 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商:            Oracle Corporation

好了!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!