Skip to content

Commit 9981ae6

Browse files
committed
Rename WebFluxAnnotationAutoConfiguration
Rename WebFluxAnnotationAutoConfiguration to WebFluxAutoConfiguration to better align with Spring MVC.
1 parent 99a3ec8 commit 9981ae6

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/HttpHandlerAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
@ConditionalOnClass({ DispatcherHandler.class, HttpHandler.class })
5555
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE)
5656
@ConditionalOnMissingBean(HttpHandler.class)
57-
@AutoConfigureAfter({ WebFluxAnnotationAutoConfiguration.class })
57+
@AutoConfigureAfter({ WebFluxAutoConfiguration.class })
5858
@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE + 10)
5959
public class HttpHandlerAutoConfiguration {
6060

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
@ConditionalOnMissingBean({ WebFluxConfigurationSupport.class, RouterFunction.class })
100100
@AutoConfigureAfter(ReactiveWebServerAutoConfiguration.class)
101101
@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE + 10)
102-
public class WebFluxAnnotationAutoConfiguration {
102+
public class WebFluxAutoConfiguration {
103103

104104
@Configuration
105105
@EnableConfigurationProperties({ ResourceProperties.class, WebFluxProperties.class })

spring-boot-autoconfigure/src/main/resources/META-INF/spring.factories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration,\
108108
org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration,\
109109
org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration,\
110110
org.springframework.boot.autoconfigure.web.reactive.ReactiveWebServerAutoConfiguration,\
111-
org.springframework.boot.autoconfigure.web.reactive.WebFluxAnnotationAutoConfiguration,\
111+
org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration,\
112112
org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration,\
113113
org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration,\
114114
org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration,\

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/HttpHandlerAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void shouldNotProcessIfExistingHttpHandler() {
6464

6565
@Test
6666
public void shouldConfigureHttpHandlerAnnotation() {
67-
load(WebFluxAnnotationAutoConfiguration.class);
67+
load(WebFluxAutoConfiguration.class);
6868
assertThat(this.context.getBeansOfType(HttpHandler.class).size()).isEqualTo(1);
6969
}
7070

@@ -125,7 +125,7 @@ private void load(Class<?> config, String... environment) {
125125
}
126126

127127
@Configuration
128-
@Import(WebFluxAnnotationAutoConfiguration.class)
128+
@Import(WebFluxAutoConfiguration.class)
129129
protected static class AnnotationConfigWithWebFilters {
130130

131131
@Bean
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@
6262
import static org.mockito.Mockito.mock;
6363

6464
/**
65-
* Tests for {@link WebFluxAnnotationAutoConfiguration}.
65+
* Tests for {@link WebFluxAutoConfiguration}.
6666
*
6767
* @author Brian Clozel
6868
* @author Andy Wilkinson
6969
*/
70-
public class WebFluxAnnotationAutoConfigurationTests {
70+
public class WebFluxAutoConfigurationTests {
7171

7272
@Rule
7373
public ExpectedException thrown = ExpectedException.none();
@@ -358,7 +358,7 @@ public ViewResolver anotherViewResolver() {
358358
}
359359

360360
@Configuration
361-
@Import({ WebFluxAnnotationAutoConfiguration.class })
361+
@Import({ WebFluxAutoConfiguration.class })
362362
@EnableConfigurationProperties(WebFluxProperties.class)
363363
protected static class BaseConfiguration {
364364

spring-boot-test-autoconfigure/src/main/resources/META-INF/spring.factories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfig
6767
org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebFlux=\
6868
org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration,\
6969
org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration,\
70-
org.springframework.boot.autoconfigure.web.reactive.WebFluxAnnotationAutoConfiguration
70+
org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration
7171

7272
# AutoConfigureMockMvc auto-configuration imports
7373
org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc=\

0 commit comments

Comments
 (0)