启动Tomcat时出现一堆警告是社么原因?
21-Jul-2019 15:58:25.965 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/lib/spring-context-4.1.6.RELEASE.jar] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jul-2019 15:58:25.966 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/lib/spring-core-4.1.6.RELEASE.jar] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jul-2019 15:58:25.967 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/lib/spring-expression-4.1.6.RELEASE.jar] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jul-2019 15:58:25.967 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/lib/spring-jdbc-4.1.6.RELEASE.jar] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jul-2019 15:58:25.968 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/lib/spring-orm-4.1.6.RELEASE.jar] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jul-2019 15:58:25.968 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/lib/spring-tx-4.1.6.RELEASE.jar] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jul-2019 15:58:25.969 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/lib/spring-web-4.1.6.RELEASE.jar] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jul-2019 15:58:25.971 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/target/shopmgr/WEB-INF/classes/target/shopmgr/WEB-INF/jsp/list.jsp] to the cache for web application [] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
21-Jul-2019 15:58:25.971 警告 [RMI TCP Connection(2)-127
正在回答
同学这是由于缓存不足导致的问题
在tomcat的/conf/context.xml文件夹下面添加以下语句
<Resources cachingAllowed="true" cacheMaxSize="100000" />
清除一下idea的idea的缓存,重新启动测试一下
如果我的回答解决了你的疑惑,请采纳,祝学习愉快~
- 参与学习 人
- 提交作业 205 份
- 解答问题 4317 个
Java中非常实用的SSM整合开发内容,从Spring开始,到MyBaits的进阶内容,再到SpringMVC的应用,最后是SSM整合开发案例,逐步深入,助你成长为一名Java工程师!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星