org.springframework.boot.autoconfigure.web.ErrorViewResolver Java Examples

The following examples show how to use org.springframework.boot.autoconfigure.web.ErrorViewResolver. 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 vote down vote up
public CrnkErrorControllerAutoConfiguration(ServerProperties serverProperties,
											ObjectProvider<List<ErrorViewResolver>> errorViewResolversProvider) {
	this.serverProperties = serverProperties;
	this.errorViewResolvers = errorViewResolversProvider.getIfAvailable();
}
 
Example #2
Source File: CustomErrorControllerConfiguration.java    From spring-mvc-error-handling-example with Apache License 2.0 4 votes vote down vote up
public CustomErrorControllerConfiguration(ServerProperties serverProperties,
    ObjectProvider<List<ErrorViewResolver>> errorViewResolversProvider) {
  this.serverProperties = serverProperties;
  this.errorViewResolvers = errorViewResolversProvider.getIfAvailable();
}
 
Example #3
Source File: CustomErrorController.java    From spring-mvc-error-handling-example with Apache License 2.0 4 votes vote down vote up
public CustomErrorController(ErrorAttributes errorAttributes,
    ErrorProperties errorProperties,
    List<ErrorViewResolver> errorViewResolvers) {
  super(errorAttributes, errorProperties, errorViewResolvers);
}
 
Example #4
Source File: WebConfig.java    From citrus-admin with Apache License 2.0 4 votes vote down vote up
@Bean
public ErrorViewResolver supportPathBasedLocationStrategyWithoutHashes() {
    return (HttpServletRequest req, HttpStatus status, Map<String, Object> model) -> status == HttpStatus.NOT_FOUND
            ? new ModelAndView("index.html", Collections.emptyMap(), HttpStatus.OK)
            : null;
}
 
Example #5
Source File: DataResultErrorController.java    From onetwo with Apache License 2.0 4 votes vote down vote up
public DataResultErrorController(ErrorAttributes errorAttributes,
		ErrorProperties errorProperties,
		List<ErrorViewResolver> errorViewResolvers) {
	super(errorAttributes, errorProperties, errorViewResolvers);
}
 
Example #6
Source File: CrnkErrorController.java    From crnk-framework with Apache License 2.0 3 votes vote down vote up
public CrnkErrorController(ErrorAttributes errorAttributes,
						   ErrorProperties errorProperties,
						   List<ErrorViewResolver> errorViewResolvers) {
	super(errorAttributes, errorProperties, errorViewResolvers);
}