IntelliJ IDEA 控制台中文乱码解决方案

配置Intellij的配置文件(在idea安装目录bin目录下)

打开Intellij的根目录,找到下图的两个文件(根据你的系统是32位或64位选择其中一个配置文件),在配置文件中添加:

-Dfile.encoding=UTF-8

配置项目编码及IDE编码

进入settings,选择File Encodings,把IDE Encoding和Project Encoding配置为UTF-8,同时将下面的Default encoding for properties files也配置为UTF-8

配置项目启动服务器参数
tomcat配置里面

在VM options 项中添加

-Dfile.encoding=UTF-8
原文地址:https://www.cnblogs.com/lxyuuuuu/p/10190537.html