在使用LettuceConnectionFactory连接Redis过程中,遇到
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis on
Redis设置成protected-mode,并且启用了密码验证,在密码验证启用前,Spring可以正常连接,启用密码验证后,启动工程报出该错误,经排查原因,是Redis配置绑定了本机IP,取消bind配置,启动即成功