parent
31a5d7f876
commit
0ea2626867
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue