Example usage for org.springframework.boot.web.servlet.error DefaultErrorAttributes DefaultErrorAttributes

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

Introduction

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

Prototype

public DefaultErrorAttributes(boolean includeException) 

Source Link

Document

Create a new DefaultErrorAttributes instance.

Usage

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

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