Disable Undertow auto-config if required XNIO classes are unavailable

Fixes gh-1986
pull/1979/merge
Andy Wilkinson 10 years ago
parent dea1ca9855
commit d5ad502d31

@ -48,6 +48,7 @@ import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.util.ObjectUtils;
import org.xnio.SslClientAuthMode;
/**
* {@link EnableAutoConfiguration Auto-configuration} for an embedded servlet containers.
@ -96,7 +97,7 @@ public class EmbeddedServletContainerAutoConfiguration {
* Nested configuration if Undertow is being used.
*/
@Configuration
@ConditionalOnClass({ Servlet.class, Undertow.class })
@ConditionalOnClass({ Servlet.class, Undertow.class, SslClientAuthMode.class })
@ConditionalOnMissingBean(value = EmbeddedServletContainerFactory.class, search = SearchStrategy.CURRENT)
public static class EmbeddedUndertow {

Loading…
Cancel
Save