在运行/调试 配置对话框的Startup/Connection面板中,

勾选Pass environment variables.

并添加一个environment variable,

Name填 JAVA_TOOL_OPTIONS, Value填 -Dfile.encoding=UTF-8.

另外打开idea的安装目录找到:idea.exe.vmoptions和idea64.exe.vmoptions文件,分别在末尾加上:-Dfile.encoding=UTF-8   即可

IDEA tomcat乱码IDEA tomcat乱码

相关文章:

  • 2022-12-23
  • 2021-05-02
  • 2021-06-07
  • 2022-01-10
  • 2021-05-22
  • 2021-11-21
  • 2022-02-04
  • 2021-06-16
猜你喜欢
  • 2021-06-11
  • 2021-07-29
  • 2021-05-15
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
相关资源
相似解决方案