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:
commit
4748626f45
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue