Use existing properties field

See gh-17129
This commit is contained in:
Ingyu Hwang 2019-06-13 16:15:09 +09:00 committed by Stephane Nicoll
parent e0aa90cf32
commit 725cbd9bc8
1 changed files with 2 additions and 3 deletions

View File

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