在使用tomcat的时候,直接通过bin目录下的start.bat来启动,会发现命令行窗口出现了满屏的乱码,

如图所示:

【Tomcat】命令行启动出现中文乱码的解决办法

解决办法:

打开tomcat的conf目录下的logging.properties文件,

将:java.util.logging.ConsoleHandler.encoding = UTF-8

改为:java.util.logging.ConsoleHandler.encoding = GBK

 

最后重启就会发现命令行不再乱码了=。=

相关文章:

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