码迷,mamicode.com
首页 > 其他好文 > 详细

Tomcat启动乱码

时间:2020-02-29 00:24:51      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:style   prope   util   乱码   amd   OLE   变量   user   参数   

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

好了!

Tomcat启动乱码

标签:style   prope   util   乱码   amd   OLE   变量   user   参数   

原文地址:https://www.cnblogs.com/qqfff/p/12381040.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!