1:用编辑器打开tomcat目录下/conf/logging.properties

2:如果是tomcat7.0及以下,在下图对应位置添加java.util.logging.ConsoleHandler.encoding = GBK

tomcat启动时控制台乱码解决方法

如果是tomcat8.0及以上找到

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

修改为:

java.util.logging.ConsoleHandler.encoding = GBK

保存重启即可

 

相关文章:

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