Spring项目启动报错 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘redisIdemtChecker’ defined in class path resource [application-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [qunar.tc.qmq.consumer.idempotent.RedisIdempotentChecker]: Constructor threw exception; nested exception is java.lang.RuntimeException: 无法连接你所配置的redis集群: namespace=redis
结论:redis集群挂了 spring初始化报错了 ,先检查下数据库连接 ,应该是没连接上数据库才报这个错的。 检查数据库是否开启,看看连接的url,用户名,密码,数据库名。