|
1 | 1 | /*
|
2 |
| - * Copyright 2012-2023 the original author or authors. |
| 2 | + * Copyright 2012-2024 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
46 | 46 | import org.springframework.boot.actuate.endpoint.web.ExposableWebEndpoint;
|
47 | 47 | import org.springframework.boot.actuate.endpoint.web.WebEndpointsSupplier;
|
48 | 48 | import org.springframework.boot.actuate.endpoint.web.WebServerNamespace;
|
49 |
| -import org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier; |
50 | 49 | import org.springframework.boot.actuate.endpoint.web.reactive.AdditionalHealthEndpointPathsWebFluxHandlerMapping;
|
51 | 50 | import org.springframework.boot.actuate.endpoint.web.reactive.ControllerEndpointHandlerMapping;
|
52 | 51 | import org.springframework.boot.actuate.endpoint.web.reactive.WebFluxEndpointHandlerMapping;
|
@@ -89,10 +88,11 @@ public class WebFluxEndpointManagementContextConfiguration {
|
89 | 88 |
|
90 | 89 | @Bean
|
91 | 90 | @ConditionalOnMissingBean
|
| 91 | + @SuppressWarnings("removal") |
92 | 92 | public WebFluxEndpointHandlerMapping webEndpointReactiveHandlerMapping(WebEndpointsSupplier webEndpointsSupplier,
|
93 |
| - ControllerEndpointsSupplier controllerEndpointsSupplier, EndpointMediaTypes endpointMediaTypes, |
94 |
| - CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, |
95 |
| - Environment environment) { |
| 93 | + org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier controllerEndpointsSupplier, |
| 94 | + EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, |
| 95 | + WebEndpointProperties webEndpointProperties, Environment environment) { |
96 | 96 | String basePath = webEndpointProperties.getBasePath();
|
97 | 97 | EndpointMapping endpointMapping = new EndpointMapping(basePath);
|
98 | 98 | Collection<ExposableWebEndpoint> endpoints = webEndpointsSupplier.getEndpoints();
|
@@ -128,9 +128,10 @@ public AdditionalHealthEndpointPathsWebFluxHandlerMapping managementHealthEndpoi
|
128 | 128 |
|
129 | 129 | @Bean
|
130 | 130 | @ConditionalOnMissingBean
|
| 131 | + @SuppressWarnings("removal") |
131 | 132 | public ControllerEndpointHandlerMapping controllerEndpointHandlerMapping(
|
132 |
| - ControllerEndpointsSupplier controllerEndpointsSupplier, CorsEndpointProperties corsProperties, |
133 |
| - WebEndpointProperties webEndpointProperties) { |
| 133 | + org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier controllerEndpointsSupplier, |
| 134 | + CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties) { |
134 | 135 | EndpointMapping endpointMapping = new EndpointMapping(webEndpointProperties.getBasePath());
|
135 | 136 | return new ControllerEndpointHandlerMapping(endpointMapping, controllerEndpointsSupplier.getEndpoints(),
|
136 | 137 | corsProperties.toCorsConfiguration());
|
|
0 commit comments