tomcat报错

1、consider increasing the maximum size of the cache

org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/20210113/81d5a663eca4493b8e79bccceb69687e.jpg] to the cache for web application [/attachment] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

只要在$CATALINA_BASE/conf/context.xml里增加资源最大可缓存的大小就行了,大小可按自己的需要定义

<Resources
    cachingAllowed="true"
    cacheMaxSize="100000"
/>

2、post请求参数过长时报400错误

[文章]https://blog.csdn.net/fst438060684/article/details/82453969

3、java.io.InvalidClassException:local class incompatible

是序列化和反序列化的serialVersionUID没有对应上。而serialVersionUID参数主要是用来验证Java序列化版本一致性。造成上述报错信息的原因是这类里面没有显示指定serialVersionUID值。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容