Use spring.session.timeout for Spring Session timeout

Fallback to server.servlet.session.timeout for backwards compatibility.

Fixes gh-12906
This commit is contained in:
Madhura Bhave
2018-04-27 13:16:17 -07:00
parent d448c5ac49
commit 0385bd4131
4 changed files with 50 additions and 17 deletions

View File

@@ -445,6 +445,7 @@ content into your application. Rather, pick only the properties that you need.
# SPRING SESSION ({sc-spring-boot-autoconfigure}/session/SessionProperties.{sc-ext}[SessionProperties])
spring.session.store-type= # Session store type.
spring.session.timeout= # Session timeout. If a duration suffix is not specified, seconds will be used.
spring.session.servlet.filter-order=-2147483598 # Session repository filter order.
spring.session.servlet.filter-dispatcher-types=async,error,request # Session repository filter dispatcher types.

View File

@@ -6014,7 +6014,8 @@ the name of the table for the JDBC store, as shown in the following example:
spring.session.jdbc.table-name=SESSIONS
----
For setting the timeout of the session you can use the `spring.session.timeout` property.
If that property is not set, the auto-configuration will fallback to the value of `server.servlet.session.timeout`.
[[boot-features-jmx]]
== Monitoring and Management over JMX