From a824edd1c3bef1617ca36ab97e733194261463e6 Mon Sep 17 00:00:00 2001 From: Eleftheria Stein Date: Mon, 30 Mar 2020 13:54:07 -0400 Subject: [PATCH] Mention Spring Boot implementation detection in docs Resolves: gh-1610 --- spring-session-docs/src/docs/asciidoc/guides/boot-jdbc.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-session-docs/src/docs/asciidoc/guides/boot-jdbc.adoc b/spring-session-docs/src/docs/asciidoc/guides/boot-jdbc.adoc index 8a086c52b..8884d0ec9 100644 --- a/spring-session-docs/src/docs/asciidoc/guides/boot-jdbc.adoc +++ b/spring-session-docs/src/docs/asciidoc/guides/boot-jdbc.adoc @@ -52,6 +52,9 @@ spring.session.store-type=jdbc # Session store type. ---- ==== +If a single Spring Session module is present on the classpath, Spring Boot uses that store implementation automatically. +If you have more than one implementation, you must choose the StoreType that you wish to use to store the sessions, as shows above. + Under the hood, Spring Boot applies configuration that is equivalent to manually adding the `@EnableJdbcHttpSession` annotation. This creates a Spring bean with the name of `springSessionRepositoryFilter`. That bean implements `Filter`. The filter is in charge of replacing the `HttpSession` implementation to be backed by Spring Session.