Improve Spring Session MongoDB support naming
This commit is contained in:
committed by
Andy Wilkinson
parent
c03bb4c1fe
commit
0c036a69f2
@@ -24,7 +24,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
* @author Andy Wilkinson
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "spring.session.mongo")
|
||||
@ConfigurationProperties(prefix = "spring.session.mongodb")
|
||||
public class MongoSessionProperties {
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,7 +35,7 @@ final class SessionStoreMappings {
|
||||
static {
|
||||
Map<StoreType, Class<?>> mappings = new HashMap<>();
|
||||
mappings.put(StoreType.REDIS, RedisSessionConfiguration.class);
|
||||
mappings.put(StoreType.MONGO, MongoSessionConfiguration.class);
|
||||
mappings.put(StoreType.MONGODB, MongoSessionConfiguration.class);
|
||||
mappings.put(StoreType.JDBC, JdbcSessionConfiguration.class);
|
||||
mappings.put(StoreType.HAZELCAST, HazelcastSessionConfiguration.class);
|
||||
mappings.put(StoreType.NONE, NoOpSessionConfiguration.class);
|
||||
|
||||
@@ -32,9 +32,9 @@ public enum StoreType {
|
||||
REDIS,
|
||||
|
||||
/**
|
||||
* Mongo backed sessions.
|
||||
* MongoDB backed sessions.
|
||||
*/
|
||||
MONGO,
|
||||
MONGODB,
|
||||
|
||||
/**
|
||||
* JDBC backed sessions.
|
||||
|
||||
Reference in New Issue
Block a user