类 SessionProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.session.SessionProperties
@ConfigurationProperties(prefix="spring.session") public class SessionProperties extends Object
Configuration properties for Spring Session.- 从以下版本开始:
- 1.4.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSessionProperties.Hazelcaststatic classSessionProperties.Jdbcstatic classSessionProperties.Mongostatic classSessionProperties.Redis
构造器概要
构造器 构造器 说明 SessionProperties(org.springframework.beans.factory.ObjectProvider<ServerProperties> serverProperties)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SessionProperties.HazelcastgetHazelcast()SessionProperties.JdbcgetJdbc()SessionProperties.MongogetMongo()SessionProperties.RedisgetRedis()StoreTypegetStoreType()IntegergetTimeout()Return the session timeout in seconds.voidsetStoreType(StoreType storeType)
构造器详细资料
SessionProperties
public SessionProperties(org.springframework.beans.factory.ObjectProvider<ServerProperties> serverProperties)
方法详细资料
getStoreType
public StoreType getStoreType()
setStoreType
public void setStoreType(StoreType storeType)
getTimeout
public Integer getTimeout()
Return the session timeout in seconds.- 返回:
- the session timeout in seconds
- 另请参阅:
ServerProperties.getSession()
getHazelcast
public SessionProperties.Hazelcast getHazelcast()
getJdbc
public SessionProperties.Jdbc getJdbc()
getMongo
public SessionProperties.Mongo getMongo()
getRedis
public SessionProperties.Redis getRedis()