Closed jxblum closed 2 years ago
The workaround for the time being is to simply set the Spring Boot spring.session.timeout
property as an int
value and know that it represents "seconds" (only).
For example, if you need a 5 minute timeout, then you need to convert the minutes into seconds:
5 minutes == 5 minutes * 60 seconds / minute == 300 seconds
So, in Spring Boot application.properties
you would set the spring.session.timeout
property to 300
, like so:
# Spring Boot application.properties`
spring.session.timeout=300
In Spring Boot
application.properties
, if a user tries to configure the Session expiration timeout using the Spring Boot specificspring.session.timeout
property (doc) withjava.time.Duration
styling, then SBDG does not correctly take theDuration
styling into account (i.e. inspects the property value prior to conversion) and results in thrown an Exception on Spring container startup.For example, given the following Spring Boot
application.properties
:Or, alternatively in test configuration:
Then, when using Spring Boot for Apache Geode (SBDG) to auto-configure Spring Session for Apache Geode (SSDG) , the following Exception is thrown: