1. 问题如下:
18-Aug-2019 10:31:34.239 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏈嶅姟鍣ㄧ増鏈�: Apache Tomcat/9.0.22
18-Aug-2019 10:31:34.241 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏋勫缓: Jul 4 2019 14:20:06 UTC
18-Aug-2019 10:31:34.241 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.22.0
18-Aug-2019 10:31:34.241 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
18-Aug-2019 10:31:34.241 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.鐗堟湰: 10.0
18-Aug-2019 10:31:34.241 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 缁�.閫�: amd64
18-Aug-2019 10:31:34.241 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 鐜鍙橀噺: F:\Software\eclipse\Java_jdk_installation_path\jre
18-Aug-2019 10:31:34.241 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 鐗堟湰: 1.8.0_144-b01
18-Aug-2019 10:31:34.242 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.渚涘簲鍟�: Oracle Corporation
18-Aug-2019 10:31:34.242 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Administrator\.IntelliJIdea2019.2\system\tomcat\Unnamed_Work_Space
18-Aug-2019 10:31:34.242 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: E:\Software\MySQL\apache-tomcat-9.0.22
18-Aug-2019 10:31:34.242 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2019.2\system\tomcat\Unnamed_Work_Space\conf\logging.properties
18-Aug-2019 10:31:34.242 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
18-Aug-2019 10:31:34.242 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
18-Aug-2019 10:31:34.242 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
18-Aug-2019 10:31:34.242 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\Administrator\.IntelliJIdea2019.2\system\tomcat\Unnamed_Work_Space\jmxremote.password
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\Administrator\.IntelliJIdea2019.2\system\tomcat\Unnamed_Work_Space\jmxremote.access
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2019.2\system\tomcat\Unnamed_Work_Space
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\Software\MySQL\apache-tomcat-9.0.22
18-Aug-2019 10:31:34.243 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\Software\MySQL\apache-tomcat-9.0.22\temp
18-Aug-2019 10:31:34.245 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.7.0].
18-Aug-2019 10:31:34.245 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
18-Aug-2019 10:31:34.245 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
18-Aug-2019 10:31:34.362 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1c 28 May 2019]
18-Aug-2019 10:31:35.804 淇℃伅 [main] org.apache.coyote.AbstractProtocol.init 鍒濆鍖栧崗璁鐞嗗櫒 ["http-nio-8080"]
18-Aug-2019 10:31:35.880 淇℃伅 [main] org.apache.coyote.AbstractProtocol.init 鍒濆鍖栧崗璁鐞嗗櫒 ["ajp-nio-8009"]
18-Aug-2019 10:31:35.891 淇℃伅 [main] org.apache.catalina.startup.Catalina.load 鏈嶅姟鍣ㄥ湪[2,361]姣鍐呭垵濮嬪寲
18-Aug-2019 10:31:36.090 淇℃伅 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
18-Aug-2019 10:31:36.090 淇℃伅 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.22]
18-Aug-2019 10:31:36.100 淇℃伅 [main] org.apache.coyote.AbstractProtocol.start 寮�濮嬪崗璁鐞嗗彞鏌刐"http-nio-8080"]
18-Aug-2019 10:31:36.121 淇℃伅 [main] org.apache.coyote.AbstractProtocol.start 寮�濮嬪崗璁鐞嗗彞鏌刐"ajp-nio-8009"]
18-Aug-2019 10:31:36.123 淇℃伅 [main] org.apache.catalina.startup.Catalina.start Server startup in [232] milliseconds
Connected to server
[2019-08-18 10:31:36,250] Artifact DynamicWebPro:war exploded: Artifact is being deployed, please wait...
[2019-08-18 10:31:36,902] Artifact DynamicWebPro:war exploded: Artifact is deployed successfully
[2019-08-18 10:31:36,903] Artifact DynamicWebPro:war exploded: Deploy took 652 milliseconds
18-Aug-2019 10:31:46.230 淇℃伅 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 鎶妛eb 搴旂敤绋嬪簭閮ㄧ讲鍒扮洰褰� [E:\Software\MySQL\apache-tomcat-9.0.22\webapps\manager]
18-Aug-2019 10:31:46.346 淇℃伅 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\Software\MySQL\apache-tomcat-9.0.22\webapps\manager] has finished in [115] ms
2. 解决方法;
打开Tomcat的conf文件夹下的service.xml配置,增加URIEncoding="UTF-8",具体如下:
修改tomcat的conf下的logging.properties中的参数,将UTF-8改为GBK就行了;