首页 > 解决方案 > 这个警告是什么意思?

问题描述

我一直在使用 Maven 开发 Spring MVC 项目。当我在“webapp”文件夹下添加 WEB-INF 文件夹时,控制台会发出警告,上面写着:

WARNING: Unable to add the resource at [/WEB-INF/classes/hibernate.properties] to the cache for web application [/PreFix-Solution] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

还有其他带有不同路径的警告,例如[/WEB-INF/classes/com/solutionsPrefix/entity/][/WEB-INF/classes/META-INF/services/org.hibernate.boot.spi.SessionFactoryBuilderFactory]。尽管有所有这些警告,但我的应用程序运行良好。我已从网络浏览器清除缓存。不过,我的应用程序运行良好。谁能解释这些警告的全部内容?

我的项目目录如下所示:

我的项目目录看起来像这样

提前致谢。

标签: javaspringeclipsemaven

解决方案


要增加缓存大小,请转到 config/context.xml 并进行修改

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

推荐阅读