Skip to content

Commit f4e12e9

Browse files
Dave Syerphilwebb
authored andcommitted
Additional condition to protect Reactor 2.0 users
(cherry picked from 80d55c4) Closes gh-2255
1 parent fe83aed commit f4e12e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/reactor/ReactorAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @author Dave Syer
3535
*/
3636
@Configuration
37-
@ConditionalOnClass(EnableReactor.class)
37+
@ConditionalOnClass({ EnableReactor.class, Environment.class })
3838
@AutoConfigureAfter(WebMvcAutoConfiguration.class)
3939
public class ReactorAutoConfiguration {
4040

0 commit comments

Comments
 (0)