Skip to content

Commit

Permalink
Mention Spring Boot implementation detection in docs
Browse files Browse the repository at this point in the history
Resolves: gh-1610
  • Loading branch information
eleftherias committed Mar 30, 2020
1 parent aa4f783 commit a824edd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spring-session-docs/src/docs/asciidoc/guides/boot-jdbc.adoc
Expand Up @@ -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.
Expand Down

0 comments on commit a824edd

Please sign in to comment.