按照https://blog.csdn.net/weixin_30896511/article/details/97629509配置
再tomcat7中中文正常
tomcat8中乱码,中文部分全是??
按照https://blog.csdn.net/weixin_30896511/article/details/97629509配置
再tomcat7中中文正常
tomcat8中乱码,中文部分全是??
要解决的话,可以打开tomcat8的目录,找到conf文件夹,也就是配置所在的文件夹,一般解决中文乱码的方式,是修改server.xml中的编码集,改为utf-8,但有时,我们发现server.xml中编码集设置的是utf-8,但是控制台日志依旧会出现中文乱码的情况,此时我们可以修改logging.properties文件,
可以看到
java.util.logging.ConsoleHandler.encoding = UTF-8,
默认的是utf-8,我们可以修改为:
java.util.logging.ConsoleHandler.encoding = GBK