This error occurs when Spring is unable to process a merged bean definition due to a missing class. In this case, the missing class is "com.lambdaworks.redis.api.StatefulRedisConnection".

To resolve this issue, you need to add the necessary dependency to your project. This class belongs to the Redisson client library, so you should add the Redisson dependency to your project.

If you are using Maven, add the following dependency to your pom.xml file:

<dependency>
    <groupId>org.redisson</groupId>
    <artifactId>redisson</artifactId>
    <version>3.15.0</version>
</dependency>

If you are using Gradle, add the following dependency to your build.gradle file:

implementation 'org.redisson:redisson:3.15.0'

After adding the dependency, rebuild your project and try again. This should resolve the "java.lang.NoClassDefFoundError" error

Post-processing of merged bean definition failed; nested exception is javalangNoClassDefFoundError comlambdaworksredisapiStatefulRedisConnection

原文地址: https://www.cveoy.top/t/topic/fGiT 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录