✅ 操作成功!

consider increasing the maximum size of the cache. After eviction approximately [9,230] KB of data

发布时间:2023-06-12 作者:admin 来源:文学

consider increasing the maximum size of the cache. After eviction approximately [9,230] KB of data

consider increasing the maximum size of the cache. After eviction approximately [9,230] KB of data

业务场景

springboot项目,使用外置tomcat启动项目。在真实环境部署的时候,项目正常启动后提示 consider increasing the maximum size of the cache. After eviction approximately [9,230] KB of data remained in the cache

产生原因:

由于项目本身中存在众多无用的配置以及无用的代码,静态文件等, 导致的项目所以console警告缓存不够。

解决方案

解决方案就是把缓存弄大点。一开始没耐心看答案,直接把代码加进server.xml了,正确的应该是加到context.xml

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

 

👁️ 阅读量:0