Skip to content

Commit 56072be

Browse files
vanwobeandreasfritzSteKoeulischulte
authored
fix(#2124): Webflux app ignores the basepath configuration (#2125)
* fix(#2124): Webflux app ignores the basepath configuration * Enhanced Headers * Fix missing WebfluxProperties in Test * Fix import order * Apply spring javaformat Co-authored-by: Andreas Fritz <[email protected]> Co-authored-by: Stephan Köninger <[email protected]> Co-authored-by: ulrichschulte <[email protected]>
1 parent e7964bc commit 56072be

File tree

336 files changed

+558
-343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+558
-343
lines changed

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/ClientProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/CloudFoundryApplicationProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/InstanceProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/ServiceHostType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientAutoConfiguration.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -33,6 +33,7 @@
3333
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
3434
import org.springframework.boot.autoconfigure.web.ServerProperties;
3535
import org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration;
36+
import org.springframework.boot.autoconfigure.web.reactive.WebFluxProperties;
3637
import org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration;
3738
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
3839
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath;
@@ -48,8 +49,8 @@
4849
import de.codecentric.boot.admin.client.registration.ApplicationFactory;
4950
import de.codecentric.boot.admin.client.registration.ApplicationRegistrator;
5051
import de.codecentric.boot.admin.client.registration.BlockingRegistrationClient;
51-
import de.codecentric.boot.admin.client.registration.DefaultApplicationFactory;
5252
import de.codecentric.boot.admin.client.registration.DefaultApplicationRegistrator;
53+
import de.codecentric.boot.admin.client.registration.ReactiveApplicationFactory;
5354
import de.codecentric.boot.admin.client.registration.ReactiveRegistrationClient;
5455
import de.codecentric.boot.admin.client.registration.RegistrationApplicationListener;
5556
import de.codecentric.boot.admin.client.registration.RegistrationClient;
@@ -124,9 +125,10 @@ public static class ReactiveConfiguration {
124125
@ConditionalOnMissingBean
125126
public ApplicationFactory applicationFactory(InstanceProperties instance, ManagementServerProperties management,
126127
ServerProperties server, PathMappedEndpoints pathMappedEndpoints, WebEndpointProperties webEndpoint,
127-
ObjectProvider<List<MetadataContributor>> metadataContributors) {
128-
return new DefaultApplicationFactory(instance, management, server, pathMappedEndpoints, webEndpoint,
129-
new CompositeMetadataContributor(metadataContributors.getIfAvailable(Collections::emptyList)));
128+
ObjectProvider<List<MetadataContributor>> metadataContributors, WebFluxProperties webFluxProperties) {
129+
return new ReactiveApplicationFactory(instance, management, server, pathMappedEndpoints, webEndpoint,
130+
new CompositeMetadataContributor(metadataContributors.getIfAvailable(Collections::emptyList)),
131+
webFluxProperties);
130132
}
131133

132134
}

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientCloudFoundryAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientEnabledCondition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/registration/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)