Make spring.session.store-type mandatory

This commit removes the automatic enabling of Redis as the Spring Session
store when it is available. This case is covered by a warning in `1.4.x`
that this commit removes as well.

Closes gh-7858
This commit is contained in:
Stephane Nicoll
2017-01-04 12:42:04 +01:00
parent 4e8a79bf3a
commit 0a26a4146b
4 changed files with 5 additions and 47 deletions

View File

@@ -4998,7 +4998,7 @@ Spring Boot provides Spring Session auto-configuration for a wide range of store
* Hazelcast
* HashMap
If Spring Session is available, you only need to choose the
If Spring Session is available, you must choose the
{sc-spring-boot-autoconfigure}/session/StoreType.{sc-ext}[`StoreType`] that you wish to
use to store the sessions. For instance to use JDBC as backend store, you'd configure
your application as follows:
@@ -5008,9 +5008,6 @@ your application as follows:
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