Use existing properties field
See gh-17129
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user