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
好了!
来源:https://www.cnblogs.com/qqfff/p/12381040.html