Skip to content

Commit 725cbd9

Browse files
dlsrb6342snicoll
authored andcommitted
Use existing properties field
See gh-17129
1 parent e0aa90c commit 725cbd9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/WebEndpointAutoConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ public ControllerEndpointDiscoverer controllerEndpointDiscoverer(ObjectProvider<
112112

113113
@Bean
114114
@ConditionalOnMissingBean
115-
public PathMappedEndpoints pathMappedEndpoints(Collection<EndpointsSupplier<?>> endpointSuppliers,
116-
WebEndpointProperties webEndpointProperties) {
117-
return new PathMappedEndpoints(webEndpointProperties.getBasePath(), endpointSuppliers);
115+
public PathMappedEndpoints pathMappedEndpoints(Collection<EndpointsSupplier<?>> endpointSuppliers) {
116+
return new PathMappedEndpoints(properties.getBasePath(), endpointSuppliers);
118117
}
119118

120119
@Bean

0 commit comments

Comments
 (0)