启动Tomcat时出现一堆警告是社么原因?

启动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

正在回答

登陆购买课程后可参与讨论,去登陆

2回答

同学这是由于缓存不足导致的问题

  1. 在tomcat的/conf/context.xml文件夹下面添加以下语句

    http://img1.sycdn.imooc.com//climg/5d3437e50001317a06130157.jpg

<Resources cachingAllowed="true" cacheMaxSize="100000" />
  1. 清除一下idea的idea的缓存,重新启动测试一下

    http://img1.sycdn.imooc.com//climg/5d343823000175fe02710620.jpg

如果我的回答解决了你的疑惑,请采纳,祝学习愉快~

好帮手慕柯南 2019-07-21 16:22:43

同学你好!

这可能是由于是在开发工具中启动tomcat,所以会出现一些警告。属于正常现象,不会影响程序的运行呢。

祝学习愉快~

  • 提问者 野生java小菜鸡 #1
    但是警告达到900多条,每次启动Tomcat都要几分钟
    2019-07-21 17:41:31
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
SSM主流框架入门与综合项目实战2018版
  • 参与学习           人
  • 提交作业       205    份
  • 解答问题       4317    个

Java中非常实用的SSM整合开发内容,从Spring开始,到MyBaits的进阶内容,再到SpringMVC的应用,最后是SSM整合开发案例,逐步深入,助你成长为一名Java工程师!

了解课程
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师