List of usage examples for org.springframework.boot.web.servlet.error DefaultErrorAttributes DefaultErrorAttributes
public DefaultErrorAttributes(boolean includeException)
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()); }