IDEA内Tomcat中文乱码

  1. Ctrl+Alt+S关上设置,而后Editor->File Encodings,将圈出的都改成UTF-8

  1. IDEA菜单->help->Edit Custom VM Options,最初一行增加

-Dfile.encoding=UTF-8

  1. 重启Tomcat后失效,发现Console日志外面都是失常的中文了,如果没失效,请重启IDEA,多期待一会,才会失效