@Configuration @EnableScheduling public class JdbcHttpSessionConfiguration extends SpringHttpSessionConfiguration implements org.springframework.context.annotation.ImportAware
Exposes the SessionRepositoryFilter as a
bean named "springSessionRepositoryFilter". In order to use this a single
DataSource must be exposed as a Bean.
EnableJdbcHttpSession| Constructor and Description |
|---|
JdbcHttpSessionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
JdbcOperationsSessionRepository |
sessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) |
void |
setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler) |
void |
setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds) |
void |
setSpringSessionConversionService(org.springframework.core.convert.ConversionService conversionService) |
void |
setTableName(String tableName) |
org.springframework.jdbc.core.JdbcTemplate |
springSessionJdbcOperations(DataSource dataSource) |
sessionEventHttpSessionListenerAdapter, setCookieSerializer, setHttpSessionListeners, setHttpSessionStrategy, setServletContext, springSessionRepositoryFilter@Bean public org.springframework.jdbc.core.JdbcTemplate springSessionJdbcOperations(DataSource dataSource)
@Bean public JdbcOperationsSessionRepository sessionRepository(@Qualifier(value="springSessionJdbcOperations") org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.transaction.PlatformTransactionManager transactionManager)
@Autowired(required=false) @Qualifier(value="springSessionLobHandler") public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
@Autowired(required=false) @Qualifier(value="springSessionConversionService") public void setSpringSessionConversionService(org.springframework.core.convert.ConversionService conversionService)
public void setTableName(String tableName)
public void setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds)
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
setImportMetadata in interface org.springframework.context.annotation.ImportAware