Step1 在運行/調試 配置對話框的Startup/Connection面板中国章,勾選Pass environment variables.
Step2 分別在Run和Debug 添加一個environment variable简卧,
Name填 JAVA_TOOL_OPTIONS, Value填 -Dfile.encoding=UTF-8.Step3 另外打開idea的安裝目錄找到:idea.exe.vmoptions和idea64.exe.vmoptions文件,分別在末尾加上:-Dfile.encoding=UTF-8
-Step4 重啟IDEA
Paste_Image.png