mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
parent
3145edff3a
commit
99971a6578
@ -156,7 +156,8 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
|
||||
@ConditionalOnExpression("${endpoints.health.enabled:true}")
|
||||
public HealthMvcEndpoint healthMvcEndpoint(HealthEndpoint delegate) {
|
||||
HealthMvcEndpoint healthMvcEndpoint = new HealthMvcEndpoint(delegate);
|
||||
if (this.healthMvcEndpointProperties.getMapping() != null) {
|
||||
if (this.healthMvcEndpointProperties.getMapping() != null
|
||||
&& this.healthMvcEndpointProperties.getMapping().size() > 0) {
|
||||
healthMvcEndpoint.setStatusMapping(this.healthMvcEndpointProperties
|
||||
.getMapping());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user