Windows -启动tomcat乱码

为什么Tomcat启动会出现乱码

我们在windows平台单独启动tomcat的时候基本上都是乱码。

这是因为tomcat默认编码是UTF-8,但是windows默认的编码格式是GBK,不匹配,所以我们改一下就行了。

注:windows是GBK, Linux 是UTF-8。

 

我们修改配置肯定是在tomcat的conf文件夹内,修改日志的配置文件【logging.properties】

将以下5个位置默认 UTF-8  改为  GBK

 

保存后再重启tomcat就不会乱码了

posted @ 2023-06-29 16:40  小肥猪片儿的小小笔记  阅读(104)  评论(0编辑  收藏  举报