idea中tomcat乱码

  1. 修改tomcat配置文件…/apache-tomcat-9.0.41/conf/logging.properties
    最下面添加
java.util.logging.ConsoleHandler.encoding = UTF-8
java.util.logging.ConsoleHandler.encoding = UTF-8

2 修改 idea ->help->Edit Custom VM Options在这里插入图片描述
最下面添加

-Dfile.encoding=UTF-8
  1. 修改idea安装bin目录下idea64.exe.vmoptionsh 和idea.exe.vmoptionsh在这里插入图片描述
    最下面添加
-Dfile.encoding=UTF-8

版权声明:本文为liwb94原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。