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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user