Tomcat启动乱码
旂敤绋嬪簭閮ㄧ讲鍒扮洰褰?[C:UsersAdministratorDesktopServletapache-tomcat-8.5.50-windows-x64apache-tomcat-8.5.50webappsexamples] 28-Feb-2020 22:57:20.486 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:UsersAdministratorDesktopServletapache-tomcat-8.5.50-windows-x64apache-tomcat-8.5.50webappsexamples] has finished in [2,594] ms 28-Feb-2020 22:57:20.486 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 鎶妛eb 搴旂敤绋嬪簭閮ㄧ讲鍒扮洰褰?[C:UsersAdministratorDesktopServletapache-tomcat-8.5.50-windows-x64apache-tomcat-8.5.50webappshost-manager] 28-Feb-2020 22:57:20.580 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:UsersAdministratorDesktopServletapache-tomcat-8.5.50-windows-x64apache-tomcat-8.5.50webappshost-manager] has finished in [94] ms 28-Feb-2020 22:57:20.580 淇℃伅 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 鎶妛eb 搴旂敤绋嬪簭閮ㄧ讲鍒扮洰褰?[C:UsersAdministratorDesktopServletapache-tomcat-8.5.50-windows-x64apache-tomcat-8.5.50webappsmanager]
处理方式: 打开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:JDKjdk1.8.0_77jre 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
好了!