作者:0519bobo_724 | 来源:互联网 | 2023-09-04 12:28
IDEA控制台乱码1、先配置File-Setting-Editor-FileEncodings,按照如图配置都选成UTF-8 2、设置tomcat:-Dfile.encodi
IDEA控制台乱码
1、先配置File-Setting-Editor-File Encodings,按照如图配置都选成UTF-8
![](https://img.php1.cn/3cd4a/1eebe/cd5/eec57030b649a106.webp)
![](https://img.php1.cn/3cd4a/94ce/a6e/865776f6fe3d5f59.jpeg)
2、设置tomcat:-Dfile.encoding=utf-8
![](https://img.php1.cn/3cd4a/1eebe/cd5/d34245582687a4e6.webp)
3、Help-Edit Custom VM Options,在最后一行加:-Dfile.encoding=utf-8
![](https://img.php1.cn/3cd4a/1eebe/cd5/0d80e8a685a9a87b.png)
![](https://img.php1.cn/3cd4a/9b0d/ae9/2d998ad7838fbf16.jpeg)
4、重启IDEA即可