mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Change @ConditionalOnClass from Servlet to Flux
Update `ReactiveManagementContextAutoConfiguration` to check for a `Flux` class rather than `Servlet`. Closes gh-10590
This commit is contained in:
parent
f337323819
commit
ce2058fa97
@ -16,7 +16,7 @@
|
||||
|
||||
package org.springframework.boot.actuate.autoconfigure.web.reactive;
|
||||
|
||||
import javax.servlet.Servlet;
|
||||
import reactor.core.publisher.Flux;
|
||||
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
@ -33,7 +33,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@Configuration
|
||||
@ConditionalOnClass(Servlet.class)
|
||||
@ConditionalOnClass(Flux.class)
|
||||
@ConditionalOnWebApplication(type = Type.REACTIVE)
|
||||
public class ReactiveManagementContextAutoConfiguration {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user