Polish "Improve Spring Session auto-configuration tests"

See gh-11063
pull/11063/merge
Andy Wilkinson 7 years ago
parent d8e3960631
commit 8a3502bdde

@ -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)

Loading…
Cancel
Save