org.springframework.boot.web.servlet.error.DefaultErrorAttributes Java Examples

The following examples show how to use org.springframework.boot.web.servlet.error.DefaultErrorAttributes. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultErrorController.java    From beihu-boot with Apache License 2.0 5 votes vote down vote up
public DefaultErrorController(ErrorAttributes errorAttributes, ServerProperties properties) {
    super(errorAttributes == null ? new DefaultErrorAttributes() : errorAttributes);
    if (properties == null) {
        errorProperties = new ErrorProperties();
        errorProperties.setPath("/error");
    } else {
        this.errorProperties = properties.getError();
    }
}
 
Example #2
Source File: ErrorController.java    From WeBASE-Node-Manager with Apache License 2.0 4 votes vote down vote up
public ErrorController() {
    super(new DefaultErrorAttributes(), new ErrorProperties());
}
 
Example #3
Source File: ErrorController.java    From uexam with GNU Affero General Public License v3.0 4 votes vote down vote up
public ErrorController() {
    super(new DefaultErrorAttributes(), new ErrorProperties());
}
 
Example #4
Source File: DefaultErrorController.java    From beihu-boot with Apache License 2.0 4 votes vote down vote up
public DefaultErrorController() {
    super(new DefaultErrorAttributes());
    errorProperties = new ErrorProperties();
    errorProperties.setPath("/error");
}
 
Example #5
Source File: CustomErrorController.java    From feiqu-opensource with Apache License 2.0 4 votes vote down vote up
public CustomErrorController() {
	super(new DefaultErrorAttributes());
}
 
Example #6
Source File: ErrorController.java    From uexam-mysql with GNU Affero General Public License v3.0 4 votes vote down vote up
public ErrorController() {
    super(new DefaultErrorAttributes(), new ErrorProperties());
}
 
Example #7
Source File: AoomsGlobalErrorController.java    From Aooms with Apache License 2.0 4 votes vote down vote up
public AoomsGlobalErrorController(ServerProperties serverProperties) {
    super(new DefaultErrorAttributes(), serverProperties.getError());
}
 
Example #8
Source File: CustomErrorController.java    From springboot-plus with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
public CustomErrorController() {
	super(new DefaultErrorAttributes());
}
 
Example #9
Source File: DefaultResponseEntityExceptionHandler.java    From daming with Apache License 2.0 4 votes vote down vote up
private Map<String, Object> getErrorAttributes(WebRequest request) {
    DefaultErrorAttributes errorAttributes = new DefaultErrorAttributes(false);
    return errorAttributes.getErrorAttributes(request, false);
}
 
Example #10
Source File: BladeErrorMvcAutoConfiguration.java    From blade-tool with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean(value = ErrorAttributes.class, search = SearchStrategy.CURRENT)
public DefaultErrorAttributes errorAttributes() {
	return new BladeErrorAttributes();
}
 
Example #11
Source File: GlobalBasicErrorHandler.java    From spring-boot-example with MIT License 4 votes vote down vote up
public GlobalBasicErrorHandler(ServerProperties serverProperties) {
    super(new DefaultErrorAttributes(), serverProperties.getError());
}
 
Example #12
Source File: CustomErrorController.java    From spring-boot with Apache License 2.0 4 votes vote down vote up
public CustomErrorController() {
    super(new DefaultErrorAttributes());
}