|
|
@ -27,6 +27,7 @@ import org.springframework.context.annotation.Conditional;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.data.mongodb.core.MongoOperations;
|
|
|
|
import org.springframework.data.mongodb.core.MongoOperations;
|
|
|
|
import org.springframework.session.SessionRepository;
|
|
|
|
import org.springframework.session.SessionRepository;
|
|
|
|
|
|
|
|
import org.springframework.session.data.mongo.MongoOperationsSessionRepository;
|
|
|
|
import org.springframework.session.data.mongo.config.annotation.web.http.MongoHttpSessionConfiguration;
|
|
|
|
import org.springframework.session.data.mongo.config.annotation.web.http.MongoHttpSessionConfiguration;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -36,7 +37,7 @@ import org.springframework.session.data.mongo.config.annotation.web.http.MongoHt
|
|
|
|
* @author Stephane Nicoll
|
|
|
|
* @author Stephane Nicoll
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
@ConditionalOnClass(MongoHttpSessionConfiguration.class)
|
|
|
|
@ConditionalOnClass({ MongoOperations.class, MongoOperationsSessionRepository.class })
|
|
|
|
@ConditionalOnMissingBean(SessionRepository.class)
|
|
|
|
@ConditionalOnMissingBean(SessionRepository.class)
|
|
|
|
@ConditionalOnBean(MongoOperations.class)
|
|
|
|
@ConditionalOnBean(MongoOperations.class)
|
|
|
|
@Conditional(ServletSessionCondition.class)
|
|
|
|
@Conditional(ServletSessionCondition.class)
|
|
|
|