Commit 725cbd9b authored by Ingyu Hwang's avatar Ingyu Hwang Committed by Stephane Nicoll

Use existing properties field

See gh-17129
parent e0aa90cf
......@@ -112,9 +112,8 @@ public class WebEndpointAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public PathMappedEndpoints pathMappedEndpoints(Collection<EndpointsSupplier<?>> endpointSuppliers,
WebEndpointProperties webEndpointProperties) {
return new PathMappedEndpoints(webEndpointProperties.getBasePath(), endpointSuppliers);
public PathMappedEndpoints pathMappedEndpoints(Collection<EndpointsSupplier<?>> endpointSuppliers) {
return new PathMappedEndpoints(properties.getBasePath(), endpointSuppliers);
}
@Bean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment