@Bean @ConditionalOnBean(ErrorAttributes.class) public ManagementErrorEndpoint errorEndpoint(ServerProperties serverProperties, ErrorAttributes errorAttributes) { return new ManagementErrorEndpoint(serverProperties.getError().getPath(), errorAttributes); }
@Bean @ConditionalOnBean(ErrorAttributes.class) public ManagementErrorEndpoint errorEndpoint(ErrorAttributes errorAttributes) { return new ManagementErrorEndpoint(errorAttributes); }