Package com.aquima.web.boot
Class HttpSessionConfig
- java.lang.Object
-
- com.aquima.web.boot.HttpSessionConfig
-
@Configuration @ConditionalOnExpression("\'${spring.session.store-type}\' != \'none\'") public class HttpSessionConfig extends Object
Configuration for Spring Session.- Since:
- 11.0
- Author:
- Petru Galanton
-
-
Constructor Summary
Constructors Constructor Description HttpSessionConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.session.web.http.CookieSerializer
httpSessionCookieSerializer​(org.springframework.boot.autoconfigure.web.ServerProperties properties)
Customizes the session cookie set by Spring Session by using the standard Spring Boot Server Properties.
-
-
-
Method Detail
-
httpSessionCookieSerializer
@Bean public org.springframework.session.web.http.CookieSerializer httpSessionCookieSerializer​(org.springframework.boot.autoconfigure.web.ServerProperties properties)
Customizes the session cookie set by Spring Session by using the standard Spring Boot Server Properties.- Parameters:
properties
- Spring Boot Server properties- Returns:
- the cookie serializer used by Spring Session
-
-