项目场景:idea中启动tomcat时,控制台日志出现乱码 问题描述: 今天写一个ssm项目,需要用的tomcat区发布项目,在启动时出现了日志乱码 解决方案: 只是由于idea的编码与tomcat的编码发生了冲突,我们只需要将 tomcat 的 conf 目录下的 logging.properties中的最后一行加上 java.util.logging.ConsoleHandler.encoding = GBK 这样重启服务就OK了!