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 -
Method Summary
Modifier and TypeMethodDescriptionorg.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.
-
Constructor Details
-
Method Details
-
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
-