org.springframework.boot.autoconfigure.web.ErrorController Java Examples
The following examples show how to use
org.springframework.boot.autoconfigure.web.ErrorController.
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: CrnkErrorControllerAutoConfiguration.java From crnk-framework with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(value = ErrorController.class, search = SearchStrategy.CURRENT) public BasicErrorController jsonapiErrorController(ErrorAttributes errorAttributes) { return new CrnkErrorController(errorAttributes, this.serverProperties.getError(), this.errorViewResolvers); }
Example #2
Source File: ErrorHandleConfiguration.java From onetwo with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(DataResultErrorController.class) public ErrorController dataResultErrorController(ErrorAttributes errorAttributes, ServerProperties serverProperties){ return new DataResultErrorController(errorAttributes, serverProperties.getError(), this.errorViewResolvers); }