tomcat启动出现乱码问题,搜索网上,似乎没有这样的问题,我却出现了,而且没有解决,求助好心人!!
我下载的是apache-tomcat-8.5.40,环境变量配置完善,启动start.bat后可以使用,但是启动start.bat弹出的命令行中文乱码
将tomcat配置到idea中也是同样的问题,有没有人也遇到过?
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
解决办法:
到tomcat/conf/目录下
修改logging.properties 找到 java.util.logging.ConsoleHandler.encoding = utf-8这行 更改为 java.util.logging.ConsoleHandler.encoding = GBK
确实可用!