Example usage for org.springframework.boot.autoconfigure.web ServerProperties getError

List of usage examples for org.springframework.boot.autoconfigure.web ServerProperties getError

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.web ServerProperties getError.

Prototype

public ErrorProperties getError() 

Source Link

Usage

From source file:org.springframework.boot.actuate.autoconfigure.EndpointWebMvcChildContextConfiguration.java

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