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 localhost/<unresolved>:6379
Caused by: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost/<unresolved>:6379
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to localhost/<unresolved>:6379
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost/127.0.0.1:6379
Caused by: java.net.ConnectException: Connection refused: no further information
Redis에 연결이 되지 않는다.
✨ 해결
sudo service redis-server start
Redis 서버를 시작하도록 했다.
참고 👇
반응형
'Framework > Spring Boot' 카테고리의 다른 글
업로드 파일 사이즈 (0) | 2022.08.16 |
---|---|
[Error] Could not write JSON: Java 8 date/time type `java.time.LocalDateTime` not supported by default: (0) | 2022.07.16 |
[Error] java.lang.IllegalStateException: Failed to load ApplicationContext (0) | 2022.07.12 |
[Error] org.springframework.data.redis.serializer.SerializationException (0) | 2022.07.12 |
전체 게시글 목록에서 각 게시글의 댓글 수 출력 (0) | 2022.07.07 |