1、idea设置 搜索file encodings,设置为如图 2、配置文件设置 打开idea安装目录,用记事本打开框选的两个文件 在文本末尾添加; -Dfile.encoding=UTF-8 重启idea即可 愿你心如花木,向阳而生