这里只展示one way that works for me:
如图Help栏中选中Edit CustomVM Options...
会进入这个文件:
然后加入该行配置:
-Dfile.encoding=UTF-8
发现输出不乱码了,正常显示中文:
[2022-04-23 11:00:17,479] Artifact spring_test:war exploded: Artifact is deployed successfully
[2022-04-23 11:00:17,480] Artifact spring_test:war exploded: Deploy took 3,368 milliseconds
23-Apr-2022 11:00:23.845 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [D:\Tomcat\apache-tomcat-9.0.59\webapps\manager]
23-Apr-2022 11:00:23.944 信息 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[D:\Tomcat\apache-tomcat-9.0.59\webapps\manager]的部署已在[98]毫秒内完成
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)