org.springframework.boot.autoconfigure.web.ErrorAttributes#org.springframework.boot.autoconfigure.web.ErrorController源码实例Demo

下面列出了org.springframework.boot.autoconfigure.web.ErrorAttributes#org.springframework.boot.autoconfigure.web.ErrorController 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

@Bean
@ConditionalOnMissingBean(value = ErrorController.class, search = SearchStrategy.CURRENT)
public BasicErrorController jsonapiErrorController(ErrorAttributes errorAttributes) {
	return new CrnkErrorController(errorAttributes, this.serverProperties.getError(), this.errorViewResolvers);
}
 
源代码2 项目: onetwo   文件: ErrorHandleConfiguration.java
@Bean
@ConditionalOnMissingBean(DataResultErrorController.class)
public ErrorController dataResultErrorController(ErrorAttributes errorAttributes, ServerProperties serverProperties){
	return new DataResultErrorController(errorAttributes, serverProperties.getError(),
			this.errorViewResolvers);
}