Example usage for org.springframework.boot.autoconfigure.web.servlet.error BasicErrorController BasicErrorController

List of usage examples for org.springframework.boot.autoconfigure.web.servlet.error BasicErrorController BasicErrorController

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.web.servlet.error BasicErrorController BasicErrorController.

Prototype

public BasicErrorController(ErrorAttributes errorAttributes, ErrorProperties errorProperties,
        List<ErrorViewResolver> errorViewResolvers) 

Source Link

Document

Create a new BasicErrorController instance.

Usage

From source file:org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.java

@Bean
@ConditionalOnMissingBean(value = ErrorController.class, search = SearchStrategy.CURRENT)
public BasicErrorController basicErrorController(ErrorAttributes errorAttributes) {
    return new BasicErrorController(errorAttributes, this.serverProperties.getError(), this.errorViewResolvers);
}