1、打开Run/Debug Configuration,选择你的tomcat

idea 环境变量设置编码

2、然后在  Server > VM options 设置为 -Dfile.encoding=UTF-8

idea 环境变量设置编码

相关文章: