|
42 | 42 | import org.springframework.boot.actuate.endpoint.web.ExposableWebEndpoint;
|
43 | 43 | import org.springframework.boot.actuate.endpoint.web.WebEndpointsSupplier;
|
44 | 44 | import org.springframework.boot.actuate.endpoint.web.WebServerNamespace;
|
45 |
| -import org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier; |
46 | 45 | import org.springframework.boot.actuate.endpoint.web.servlet.AdditionalHealthEndpointPathsWebMvcHandlerMapping;
|
47 | 46 | import org.springframework.boot.actuate.endpoint.web.servlet.ControllerEndpointHandlerMapping;
|
48 | 47 | import org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping;
|
@@ -84,9 +83,9 @@ public class WebMvcEndpointManagementContextConfiguration {
|
84 | 83 | @SuppressWarnings("removal")
|
85 | 84 | public WebMvcEndpointHandlerMapping webEndpointServletHandlerMapping(WebEndpointsSupplier webEndpointsSupplier,
|
86 | 85 | org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointsSupplier servletEndpointsSupplier,
|
87 |
| - ControllerEndpointsSupplier controllerEndpointsSupplier, EndpointMediaTypes endpointMediaTypes, |
88 |
| - CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, |
89 |
| - Environment environment) { |
| 86 | + org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier controllerEndpointsSupplier, |
| 87 | + EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, |
| 88 | + WebEndpointProperties webEndpointProperties, Environment environment) { |
90 | 89 | List<ExposableEndpoint<?>> allEndpoints = new ArrayList<>();
|
91 | 90 | Collection<ExposableWebEndpoint> webEndpoints = webEndpointsSupplier.getEndpoints();
|
92 | 91 | allEndpoints.addAll(webEndpoints);
|
@@ -126,8 +125,8 @@ public AdditionalHealthEndpointPathsWebMvcHandlerMapping managementHealthEndpoin
|
126 | 125 | @ConditionalOnMissingBean
|
127 | 126 | @SuppressWarnings("removal")
|
128 | 127 | public ControllerEndpointHandlerMapping controllerEndpointHandlerMapping(
|
129 |
| - ControllerEndpointsSupplier controllerEndpointsSupplier, CorsEndpointProperties corsProperties, |
130 |
| - WebEndpointProperties webEndpointProperties) { |
| 128 | + org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointsSupplier controllerEndpointsSupplier, |
| 129 | + CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties) { |
131 | 130 | EndpointMapping endpointMapping = new EndpointMapping(webEndpointProperties.getBasePath());
|
132 | 131 | return new ControllerEndpointHandlerMapping(endpointMapping, controllerEndpointsSupplier.getEndpoints(),
|
133 | 132 | corsProperties.toCorsConfiguration());
|
|
0 commit comments