idea运行maven 控制台出现乱码,报红

出现错误:

 30-May-2020 15:21:27.156 璀﹀憡 [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'URLEncoding' to 'UTF-8' did not find a matching property.
30-May-2020 15:21:27.260 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏈嶅姟鍣ㄧ増鏈�: Apache Tomcat/9.0.35
30-May-2020 15:21:27.262 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 鏈嶅姟鍣ㄦ瀯寤�:        May 5 2020 20:36:20 UTC
30-May-2020 15:21:27.262 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 鏈嶅姟鍣ㄧ増鏈彿(:     9.0.35.0
30-May-2020 15:21:27.262 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 鎿嶄綔绯荤粺鍚嶇О:      Windows 10
30-May-2020 15:21:27.262 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.鐗堟湰:           10.0
30-May-2020 15:21:27.262 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 鏋舵瀯:              amd64
...

解决方法:
1、IDEA导航栏最后一个:HELP-> Edit Custom VM OPtions
2、打开后加上: -Dfile.encoding=utf-8
3、然后重启IDEA
4、解决问题。

你可能感兴趣的:(idea运行maven 控制台出现乱码,报红)