tomcat9日志中文打印正常,但涉及到Java虚拟机的代码中文打印会乱码?
Windows默认编码为gbk,涉及到jvm编码tomcat也默认为Windows编码,
只需要配置一个地方就行了:
run--->edit configureurations----->vm options: -Dfile.encoding=UTF-8
tomcat9日志中文打印正常,但涉及到Java虚拟机的代码中文打印会乱码?
Windows默认编码为gbk,涉及到jvm编码tomcat也默认为Windows编码,
只需要配置一个地方就行了:
run--->edit configureurations----->vm options: -Dfile.encoding=UTF-8