启动应用程序时出错

up9lanfz  于 2021-06-08  发布在  Redis
关注(0)|答案(0)|浏览(232)

我克隆了一个spring启动应用程序。当我开始运行应用程序时,出现以下错误。我的机器上安装了Java11。

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的多个版本,但都没用。有人能帮我解开这个错误吗?
提前谢谢!!

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题