IDEAL部署外部tomcat及其乱码解决

控制台tomca乱码问题:

本人使用tomcat9为例

1.启动信息有中文乱码:

原因:tomcat采用的是utf-8,而windows默认是GBK

修改java.util.logging.ConsoleHandler.encoding = GBK包括一下四个点

 

 

 2.设置ideal内编码

 

 编辑打开最后添加一行:-Dfile.encoding=UTF-8

3.指定idel内运行编码

 

 -Dfile.encoding=UTF-8

解决:

 

posted @ 2020-07-16 21:50  BadFisher  阅读(191)  评论(0)    收藏  举报