原文地址: tomcat 8.x + IDEA控制台乱码
欢迎访问我的博客: https://blog.duhbb.com
Tomcat
C:\\apache-tomcat-8.5.73\\conf\\logging.properties
C:\\apache-tomcat-8.5.73\\conf\\server.xml
IDEA 配置
C:\\Users\\yangxu\\AppData\\Local\\JetBrains\\Toolbox\\apps\\IDEA-U\\ch-0\\213.5744.223\\bin\\idea64.exe.vmoptions
如果不是用 toolbox 安装的, 则可以参考这个位置: C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\bin
:
-Xms4096m
-Xmx4096m
-XX:ReservedCodeCacheSize=512m
-XX:+IgnoreUnrecognizedVMOptions
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-ea
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-Dfile.encoding=UTF-8 # 加上这个
IDEA 编码设置
tomcat + IDEA
自定义 IDEA VM 选项
总结
完成上述的设计基本上就可以消除 win10 + IDEA + tomcat8.5.x 下的日志乱码了.
提醒: 修改之后最好重启 IDEA.
原文地址: tomcat 8.x + IDEA控制台乱码
欢迎访问我的博客: https://blog.duhbb.com
文章评论