Tomcat启动时 控制台中文乱码

  • cmd控制台
    【Tomcat】启动时,控制台和IDEA控制台中文乱码解决方案


  • IDEA控制台
    【Tomcat】启动时,控制台和IDEA控制台中文乱码解决方案


解决方案

  • cmd乱码
    • 打开Tomcat目录下的apache-tomcat-8.5.47\conf\logging.properties文件
    • 大概在50行左右的位置处,将java.util.logging.ConsoleHandler.encoding = UTF-8赋值为 GBK 即可
      【Tomcat】启动时,控制台和IDEA控制台中文乱码解决方案


  • Idea乱码
    • 在Idea界面 Help->Edit Custom VM Options
    • 在打开的文件最后一行追加代码 -Dfile.encoding=UTF-8即可
      【Tomcat】启动时,控制台和IDEA控制台中文乱码解决方案
      【Tomcat】启动时,控制台和IDEA控制台中文乱码解决方案

相关文章:

  • 2021-12-16
  • 2021-11-21
  • 2021-06-26
  • 2021-04-01
  • 2021-09-08
  • 2021-09-19
  • 2021-11-10
  • 2021-07-26
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2021-06-21
  • 2021-11-06
  • 2022-01-08
  • 2021-04-03
相关资源
相似解决方案