mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-28 13:09:09 +00:00
Use existing properties field
See gh-17129
This commit is contained in:
committed by
Stephane Nicoll
parent
e0aa90cf32
commit
725cbd9bc8
+2
-3
@@ -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