升级版本由
redisson-all-3.11.6.jar升级到redisson-all-3.16.4.jar,升级后报错,找不到类,tomcat启动失败
Caused by: java.lang.NoClassDefFoundError: Lorg/nustaq/serialization/FSTConfiguration;
添加依赖
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>2.43</version>
</dependency>
添加后仍然报错,
java.lang.NoClassDefFoundError: org/objenesis/Objenesis
继续添加依赖
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>3.1</version>
</dependency>
添加后可以正常启动,至此问题解决。
参考地址:
NoClassDefFoundError when using FstCodec · Issue #1439 · redisson/redisson · GitHub
https://github.com/redisson/redisson/issues/3392