尝试过在IDEA中tomcat的vmoptions中加入代码 -Dfile.encoding=GBK 没什么用 最后找到了这个方法
-Dfile.encoding=GBK
①在Tomcat文件夹下找到conf ②找到logging.properties这个文件 ③把里面的UTF-8改成GBK 成功