出现乱码的原因是Tomcat使用的是UTF-8编码,只需要在conf文件中打开logging.properties将java.util.logging.ConsoleHandler.encoding =UTF-8的UTF-8改为GBK即可