From 4a401bfa16e8fc20810e52288a9e9b3fb97dd00b Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 14 Apr 2022 20:41:00 +0100 Subject: [PATCH] Adapt to breaking changes in Spring Session Data Redis See gh-30639 --- .../autoconfigure/session/RedisSessionConfiguration.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/RedisSessionConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/RedisSessionConfiguration.java index e31c794c85..79e0115944 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/RedisSessionConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/RedisSessionConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ import org.springframework.session.SessionRepository; import org.springframework.session.data.redis.RedisIndexedSessionRepository; import org.springframework.session.data.redis.config.ConfigureNotifyKeyspaceEventsAction; import org.springframework.session.data.redis.config.ConfigureRedisAction; -import org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration; +import org.springframework.session.data.redis.config.annotation.web.http.RedisIndexedHttpSessionConfiguration; /** * Redis backed session configuration. @@ -66,7 +66,7 @@ class RedisSessionConfiguration { } @Configuration(proxyBeanMethods = false) - public static class SpringBootRedisHttpSessionConfiguration extends RedisHttpSessionConfiguration { + public static class SpringBootRedisHttpSessionConfiguration extends RedisIndexedHttpSessionConfiguration { @Autowired public void customize(SessionProperties sessionProperties, RedisSessionProperties redisSessionProperties,