Skip to content

Commit 4748626

Browse files
committed
Merge pull request #17129 from dlsrb6342
* pr/17129: Polish "Use existing properties field" Use existing properties field Closes gh-17129
2 parents e0aa90c + 46c2da4 commit 4748626

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(this.properties.getBasePath(), endpointSuppliers);
118117
}
119118

120119
@Bean

0 commit comments

Comments
 (0)