java - 这个警告是什么意思?
问题描述
我一直在使用 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]
。尽管有所有这些警告,但我的应用程序运行良好。我已从网络浏览器清除缓存。不过,我的应用程序运行良好。谁能解释这些警告的全部内容?
我的项目目录如下所示:
提前致谢。
解决方案
要增加缓存大小,请转到 config/context.xml 并进行修改
<Resources cachingAllowed="true" cacheMaxSize="500000" />
推荐阅读
- azure-active-directory - 使用具有应用程序权限的 Microsoft Graph API 时,租户没有 SPO 许可证
- python - Beautifulsoup类值提取python
- c# - 当您使用带有约束的通用参数时,C# 是否会生成单独的方法?
- docker - 无法连接到第二个 docker 容器 - 端口错误
- listview - 在应用程序开始时,在颤动中滚动到列表视图的最后一个元素
- python-3.x - 每 x 秒将一个值保存到列表中
- javascript - 为什么 React 项目名称不能包含大写字母?
- doctrine-orm - Doctrine Querybuilder, LEFT JOIN 单向 OneToMany 和 ManyToMany 关系
- python - 使用python从文本文件中提取以5开头的任何4位数字的正则表达式
- c++ - C++ - 抛出错误消息