tomcat报错

2021-06-17  本文已影响0人  dubingxin

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值。

上一篇 下一篇

猜你喜欢

热点阅读