apache-tomcat-8.5.42 启动报警告

现象:

1:tomcat 控制台打印所有静态文件的警告日志

2:tomcat启动贼慢

报错日志:

               27-Nov-2019 11:54:05.925 警告 [eps.joyhua.cn-startStop-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/mybatis-generator/mybatis-generator-core-1.3.2-sources.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

...........

解决方案:

在tomcat 安装目录下的conf/context.xml 中的 标签前添加

示例:

   

   

    WEB-INF/web.xml

    ${catalina.base}/conf/web.xml

   

   

  

参考资料:https://gofinall.com/75.html

图片:


你可能感兴趣的:(apache-tomcat-8.5.42 启动报警告)