idea中使用tomcat,控制台日志输出乱码问题
时间:2020-03-02 09:56:47
收藏:0
阅读:517
server/Tomcat Catalina Log/Tomcat Localhost Log输出乱码问题
一共改了4个位置之后解决
- File -> Setting -> File Encoding

-
更改 IDEA 配置文件
打开 IDEA 所在目录下bin下的 idea64.exe.vmoptions 文件,在后面追加一行 -Dfile.encoding=UTF-8

-
IDEA -> Edit Configurations
Tomcat VM options 填上 -Dfile.encoding=UTF-8

- apache-tomcat-9.0.20\conf\logging.properties文件中,图中所示位置修改为UTF-8
原文:https://www.cnblogs.com/lettuce-u/p/12393193.html
评论(0)