Use existing properties field

See gh-17129
pull/17132/head
Ingyu Hwang 6 years ago committed by Stephane Nicoll
parent e0aa90cf32
commit 725cbd9bc8

@ -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

Loading…
Cancel
Save