不需要修改tomcat conf下的logging.properties文件
直接在idea下的helpe
菜单下选择Edit Custom VM Options...
菜单项,打开idea相关的配置文件idea64.exe.vmoptions
注意:该文件并不是放在安装目录下的idea64.exe.vmoptions
文件,而是存放在
C:\Users\xxxx[此处为登录账户名]\.IntelliJIdea2019.2\config
在打开的文件中添加-Dfile.encoding=UTF-8
,重启idea后乱码即可解决。
如果仍旧乱码,则在Edit Configurations
中tomcat 的VM options
中也添加-Dfile.encoding=UTF-8
即可。