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 7eca78f00e..4a9d743372 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: