Class SessionServiceAutoConfiguration

java.lang.Object
org.springframework.ai.model.session.autoconfigure.SessionServiceAutoConfiguration

@AutoConfiguration(afterName="org.springframework.ai.model.session.jdbc.autoconfigure.JdbcSessionRepositoryAutoConfiguration") @ConditionalOnClass(SessionService.class) @ConditionalOnSingleCandidate(SessionRepository.class) @ConditionalOnMissingBean(SessionService.class) @EnableConfigurationProperties(SessionServiceProperties.class) public class SessionServiceAutoConfiguration extends Object
Auto-configuration of the SessionService: a DefaultSessionService on the single SessionRepository bean, whatever its implementation, wrapped by every SessionServiceDecorator bean in order. Backs off when the application declares a SessionService of its own.

Ordered after the JDBC repository auto-configuration: a bean condition sees only the definitions registered before it, so the repository must be defined by then.

Since:
2.1.0
Author:
Christian Tzolov
  • Constructor Details

    • SessionServiceAutoConfiguration

      public SessionServiceAutoConfiguration()