第一步: File-Setting设置如下 第二步: 配置tomcat的编码 第三步:idea安装目录-bin 用记事本打开idea.exe.vmoptions和idea64.exe.vmoptions文件 在文件后面添加一行: -Dfile.encoding=UTF-8