记录Tomcat配置和运作中遇到的问题 2019-11-23

问题一:启动tomcat 报Unable to add the resource at [] to the cache

问题详情:
11-Nov-2019 15:44:15.456 警告 [http-nio-8080-exec-6] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/1128353_003/da6b85d5364641f3840b2464a9acb03d.jpg] to the cache for web application [/var/faceImage] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

解决办法:

第一种方法(推荐):Tomcat 的存放目录,/conf/context.xml的context标签里面增加

第二种方法:禁用缓存,disable the cache,在context标签里面添加如下设置

你可能感兴趣的:(记录Tomcat配置和运作中遇到的问题 2019-11-23)