diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/reactor/ReactorAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/reactor/ReactorAutoConfiguration.java index 2051ad8e928e..a220df9ca9be 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/reactor/ReactorAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/reactor/ReactorAutoConfiguration.java @@ -34,7 +34,7 @@ * @author Dave Syer */ @Configuration -@ConditionalOnClass(EnableReactor.class) +@ConditionalOnClass({ EnableReactor.class, Environment.class }) @AutoConfigureAfter(WebMvcAutoConfiguration.class) public class ReactorAutoConfiguration {