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 2051ad8e92..a220df9ca9 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 @@ import reactor.spring.context.config.EnableReactor; * @author Dave Syer */ @Configuration -@ConditionalOnClass(EnableReactor.class) +@ConditionalOnClass({ EnableReactor.class, Environment.class }) @AutoConfigureAfter(WebMvcAutoConfiguration.class) public class ReactorAutoConfiguration {