tomcat中文乱码解决方法

时间:2024-10-11 20:34:14

1、从网上下载下来的tomcat直接启动,我们看到打印出来的中文全是乱码。

tomcat中文乱码解决方法

2、我们酋篚靶高需要到进入到tomcat的安装目录D:\install\works\apache-tomcat-8.5.70\conf,打开logging.properties文件

tomcat中文乱码解决方法

3、把涉及到的配置日志目录的都需要加上日志编码方式,设置成GBK进行保存。

tomcat中文乱码解决方法

4、然后我们再去启动tomcat,就能看到我们刚刚乱码已经变成正常的了。

tomcat中文乱码解决方法
© 手抄报圈