From 0ea26268676ee17c9b02642c07f6af375be73e3b Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 30 Jun 2016 15:40:45 +0200 Subject: [PATCH] Improve Spring Session documentation Closes gh-6256 --- .../src/main/asciidoc/spring-boot-features.adoc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 7eca78f00e9..4a9d743372e 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -4530,14 +4530,19 @@ Spring Boot provides Spring Session auto-configuration for a wide range of store If Spring Session is available, you only need to choose the {sc-spring-boot-autoconfigure}/session/StoreType.{sc-ext}[`StoreType`] that you wish to -use to store the sessions. For instance to use Redis as backend store, you'd configure +use to store the sessions. For instance to use JDBC as backend store, you'd configure your application as follows: [source,properties,indent=0] ---- - spring.session.store-type=redis + spring.session.store-type=jdbc ---- +NOTE: For backward compatibility if Redis is available Spring Session will be automatically +configured to use Redis. + +TIP: You can disable Spring Session by setting the `store-type` to `none`. + Each store has specific additional settings. For instance it is possible to customize the name of the table for the jdbc store: