Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource...

Posted 漫话人生

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource...相关的知识,希望对你有一定的参考价值。

[org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory]: Factory method ‘redisConnectionFactory’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfig

出现这个原因是因为lettuce池底层使用了commons-pool2,所以需要导入这个依赖

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-pool2</artifactId>
        </dependency>

导入这个依赖即可

以上是关于Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource...的主要内容,如果未能解决你的问题,请参考以下文章

Error creating bean with name ‘requestMappingHandlerMapping‘

react(85)--error:Error creating bean with name ‘onlineStudyController‘:

Error creating bean with name 'eurekaAutoServiceRegistration'

Spring 报错:Error creating bean with name

Error creating bean with name

Error creating bean with name 'transactionManager'