Tomcat startup warning prompts insufficient cache, please consider increasing the maximum cache space

The error is as follows:

03-Jun-2020 15:22:37.257 警告 [main] org.apache.catalina.webresources.Cache.getResource 无法将位于
[/WEB-INF/classes/upload/mall/product/com.mingsoft.basic.entity.AppEntity@bbd80a/1463801560357.jpg]的资源添加到Web应用程序[]的缓存中,
因为在清除过期缓存条目后可用空间仍不足 - 请考虑增加缓存的最大空间。

Solution:

Add tags in Tomcat's /conf/context.xml

<Resources cachingAllowed="true" cacheMaxSize="你所允许的最大缓存空间,单位是KB" />

Such as:

Guess you like

Origin blog.csdn.net/lunatic__/article/details/112783220