进入Preferences-> Editor->File Encodings
IDE Encoding和Project Encoding配置为UTF-8Default encoding for properties files也配置为UTF-8在tomcat配置中
在Server->VM options 项中添加
-Dfile.encoding=UTF-8Startup/Connection 中Run中添加environment variables
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8