解决tomcat控制台乱码+清除过期缓存条目后可用空间仍不足 - 请考虑增加缓存的最大空间问题

一、乱码

1、打开Tomcat的目录,找到conf文件夹,一般修改server.xml中的编码集,改为utf-8即可

 

2、若server.xml中编码设置的就是utf-8,可以修改logging.properties文件

找到java.util.logging.ConsoleHandler.encoding = UTF-8,默认的是utf-8,修改为:java.util.logging.ConsoleHandler.encoding = GBK

 

 保存,重新启动

 二、springboot tomcat  缓存

org.apache.catalina.webresources.Cache.getResource 无法将位于[/WEB-INF/classes/templates/]的资源添加到Web应用程序[/b]的缓存中,因为在清除过期缓存条目后可用空间仍不足 - 请考虑增加缓存的最大空间。

org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [**] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

posted @ 2019-11-20 09:45  Y、  阅读(11283)  评论(2编辑  收藏  举报