zoukankan      html  css  js  c++  java
  • tomcat启动控制台乱码

    16-Jul-2019 16:19:30.450 璀﹀憡 [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'encoding' to 'utf8' did not find a matching property.
    16-Jul-2019 16:19:30.514 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏈嶅姟鍣ㄧ増鏈�:        Apache Tomcat/9.0.19
    16-Jul-2019 16:19:30.514 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏋勫缓:          Apr 12 2019 14:22:48 UTC
    16-Jul-2019 16:19:30.514 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.19.0
    16-Jul-2019 16:19:30.514 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
    16-Jul-2019 16:19:30.515 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.鐗堟湰:            10.0
    16-Jul-2019 16:19:30.515 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 缁�.閫�:          amd64
    16-Jul-2019 16:19:30.515 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 鐜��鍙橀噺:             C:Program FilesJavajdk1.8.0_131jre

    解决办法:

    打开tomcat目录下conf/logging.properties文件,修改java.util.logging.ConsoleHandler.encoding = UTF-8 为

    java.util.logging.ConsoleHandler.encoding = GBK或者GB2312

  • 相关阅读:
    #include <utility>
    Html的空格显示
    ExtJs自学教程(1):一切从API開始
    天黑的时候,我又想起那首歌
    citrix协议ICA技术原理
    约瑟夫环问题
    数据结构和算法设计专题之---八大内部排序
    HDU
    深入分析C++引用
    八大排序算法总结
  • 原文地址:https://www.cnblogs.com/YpfBolg/p/11195670.html
Copyright © 2011-2022 走看看