启动应用程序时出现生菜错误

时间:2020-09-18 11:06:39

标签: java spring-boot redis lettuce

我克隆了一个Spring Boot应用程序。当我开始运行应用程序时,出现以下错误。我的机器上安装了Java 11。

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'application': Invocation of init method failed; nested exception is io.lettuce.core.dynamic.CommandMethodSyntaxException: Command SADD does not exist Offending method: public abstract java.lang.Long com.sbiremit.recos.cache.redis.RedisCommands.sadd(java.lang.String,java.lang.String...)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:139) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:414) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1770) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springfra

我尝试安装多个版本的Redis和Java,但没有任何效果。有人可以帮我揭开这个错误的秘密吗?

提前谢谢!

0 个答案:

没有答案