idea使用Tomcat打印日志乱码问题

解决方法:

1.首先在Tomcat目录下找到conf->logging.properties

进入编辑,改为java.util.logging.ConsoleHandler.encoding = UTF-8

2.

Vm options改为:-Dfile.encoding=UTF-8

 3.

打开setting,图中画红线的都要改为UTF-8

 4.

 添加:

-Dfile.encoding=UTF-8

 

 5、重启idea即可

作者:哦心有
本文版权归作者和博客园共有,欢迎转载,但必须给出原文链接,并保留此段声明,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/haobox/p/15150927.html