tomcat启动出现乱码问题,搜索网上,似乎没有这样的问题,我却出现了,而且没有解决,求助好心人!!
我下载的是tomcat7,环境变量配置完善,启动start.bat后可以使用,但是启动start.bat弹出的命令行中文乱码
将tomcat配置到idea中也是同样的问题,有没有人也遇到过?
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Server version: Apache Tomcat/7.0.92
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Server built: Nov 9 2018 11:07:44 UTC
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Server number: 7.0.92.0
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: OS Name: Windows 10
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: OS Version: 10.0
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Architecture: amd64
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Java Home: H:\java\jdk-10.0.2
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: JVM Version: 10.0.2+13
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: JVM Vendor: "Oracle Corporation"
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: CATALINA_BASE: D:\apache-tomcat-7.0.92
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: CATALINA_HOME: D:\apache-tomcat-7.0.92
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: -Djava.util.logging.config.file=D:\apache-tomcat-7.0.92\conf\logging.properties
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: -Dignore.endorsed.dirs=
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: -Dcatalina.base=D:\apache-tomcat-7.0.92
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: -Dcatalina.home=D:\apache-tomcat-7.0.92
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.VersionLoggerListener log
淇℃伅: Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-7.0.92\temp
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
淇℃伅: Loaded APR based Apache Tomcat Native library 1.2.18 using APR version 1.6.5.
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
淇℃伅: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.core.AprLifecycleListener initializeSSL
淇℃伅: OpenSSL successfully initialized (OpenSSL 1.1.1 11 Sep 2018)
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.coyote.AbstractProtocol init
淇℃伅: Initializing ProtocolHandler ["http-apr-8080"]
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.coyote.AbstractProtocol init
淇℃伅: Initializing ProtocolHandler ["ajp-apr-8009"]
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.Catalina load
淇℃伅: Initialization processed in 887 ms
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.core.StandardService startInternal
淇℃伅: Starting service Catalina
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.core.StandardEngine startInternal
淇℃伅: Starting Servlet Engine: Apache Tomcat/7.0.92
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deploying web application directory D:\apache-tomcat-7.0.92\webapps\docs
12鏈?17, 2018 9:09:20 涓嬪崍 org.apache.catalina.startup.TldConfig execute
淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12鏈?17, 2018 9:09:21 涓嬪崍 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
璀﹀憡: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [265] milliseconds.
12鏈?17, 2018 9:09:21 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deployment of web application directory D:\apache-tomcat-7.0.92\webapps\docs has finished in 881 ms
12鏈?17, 2018 9:09:21 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deploying web application directory D:\apache-tomcat-7.0.92\webapps\examples
12鏈?17, 2018 9:09:21 涓嬪崍 org.apache.catalina.startup.TldConfig execute
淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12鏈?17, 2018 9:09:21 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deployment of web application directory D:\apache-tomcat-7.0.92\webapps\examples has finished in 658 ms
12鏈?17, 2018 9:09:21 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deploying web application directory D:\apache-tomcat-7.0.92\webapps\hello1
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.TldConfig execute
淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deployment of web application directory D:\apache-tomcat-7.0.92\webapps\hello1 has finished in 102 ms
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deploying web application directory D:\apache-tomcat-7.0.92\webapps\host-manager
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.TldConfig execute
淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deployment of web application directory D:\apache-tomcat-7.0.92\webapps\host-manager has finished in 143 ms
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deploying web application directory D:\apache-tomcat-7.0.92\webapps\manager
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.TldConfig execute
淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deployment of web application directory D:\apache-tomcat-7.0.92\webapps\manager has finished in 89 ms
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deploying web application directory D:\apache-tomcat-7.0.92\webapps\ROOT
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.TldConfig execute
淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deployment of web application directory D:\apache-tomcat-7.0.92\webapps\ROOT has finished in 102 ms
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deploying web application directory D:\apache-tomcat-7.0.92\webapps\w-wang
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.TldConfig execute
淇℃伅: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.HostConfig deployDirectory
淇℃伅: Deployment of web application directory D:\apache-tomcat-7.0.92\webapps\w-wang has finished in 114 ms
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.coyote.AbstractProtocol start
淇℃伅: Starting ProtocolHandler ["http-apr-8080"]
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.coyote.AbstractProtocol start
淇℃伅: Starting ProtocolHandler ["ajp-apr-8009"]
12鏈?17, 2018 9:09:22 涓嬪崍 org.apache.catalina.startup.Catalina start
淇℃伅: Server startup in 2284 ms
上面是命令行中出现的
不知道怎么解决
但强调可以使用
在这里补充一下修改方法
要感谢下面的好心人提供的方法
到tomcat/conf/目录下
修改logging.properties 找到 java.util.logging.ConsoleHandler.encoding = utf-8这行 更改为 java.util.logging.ConsoleHandler.encoding = GBK
确实可用!