Merge pull request #17129 from dlsrb6342

* pr/17129:
  Polish "Use existing properties field"
  Use existing properties field

Closes gh-17129
This commit is contained in:
Stephane Nicoll
2019-06-13 09:55:42 +02:00

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