intelij IDEA在启动tomcat时控制台日志乱码

在idea安装目录的bin下修改idea.exe.vmoptions(32位)和idea64.exe.vmoptions(64位)添加

-Dfile.encoding=UTF-8

-Dconsole.encoding=UTF-8(可以不要)

然后重启IDE

备注:以上为主要原因,至于在 VM options 添加:-Dfile.encoding=UTF-8,和更改tomcat的bin目录下catalina.bat也可以试试

扫描二维码关注公众号,回复: 5667349 查看本文章

猜你喜欢

转载自www.cnblogs.com/liushuixiying/p/10600991.html