tomcat缓存不足问题

最近部署项目启动服务器后,控制台重复报错警告:

Unable to add the resource at [/WEB-INF/lib/xpp3_min-1.1.4c.jar] to the 
cache because there was insufficient  free space available after evicting 
expired cache entries - consider increasing the maximum size of the cache  

解决办法 :修改context.xml在任意位置增加


<Resources cachingAllowed="true" cacheMaxSize="100000" />

cacheMaxSize根据你自己项目大小去设置


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!