解决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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM