Add auto-configuration for separate Spring Session Data MongoDB module

Closes gh-9552
This commit is contained in:
Andy Wilkinson
2017-09-21 12:43:18 +01:00
parent c3bc32db02
commit c00a42f437
12 changed files with 221 additions and 2 deletions

View File

@@ -427,6 +427,9 @@ content into your application; rather pick only the properties that you need.
spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-@@platform@@.sql # Path to the SQL file to use to initialize the database schema.
spring.session.jdbc.table-name=SPRING_SESSION # Name of database table used to store sessions.
# SPRING SESSION MONGO ({sc-spring-boot-autoconfigure}/session/MonogoSessionProperties.{sc-ext}[MongoSessionProperties])
spring.session.mongo.collection-name=sessions # Collection name used to store sessions.
# SPRING SESSION REDIS ({sc-spring-boot-autoconfigure}/session/RedisSessionProperties.{sc-ext}[RedisSessionProperties])
spring.session.redis.flush-mode=on-save # Sessions flush mode.
spring.session.redis.namespace= # Namespace for keys used to store sessions.

View File

@@ -5364,6 +5364,7 @@ classes for more details.
Spring Boot provides Spring Session auto-configuration for a wide range of stores:
* JDBC
* MongoDB
* Redis
* Hazelcast