重新部署基于token的分布式问题
来源:4-17 基于token的分布式会话实现(下)

_我的征途是星辰大海
2019-11-30
将redis实现从cookie换成token之后重新部署
两台应用服务器都没有问题
但是数据库与redis服务器重启java出错
Caused by: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379
1回答
-
_我的征途是星辰大海
提问者
2019-11-30
ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: 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; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379
00
相似问题