Java 类org.springframework.boot.web.support.ErrorPageFilter 实例源码

项目:spring-boot-oauth2-rest-service-password-encoding    文件:OAuth2Configuration.java   
@Bean
public FilterRegistrationBean disableSpringBootErrorFilter(ErrorPageFilter filter) {
    FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
    filterRegistrationBean.setFilter(filter);
    filterRegistrationBean.setEnabled(false);
    return filterRegistrationBean;
}
项目:stock-tracker    文件:WebConfig.java   
@Bean
public FilterRegistrationBean disableSpringBootErrorFilter(final ErrorPageFilter filter) {
    final FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
    filterRegistrationBean.setFilter(filter);
    filterRegistrationBean.setEnabled(false);
    return filterRegistrationBean;
}
项目:spring-boot-oauth2-rest-service-password-encoding    文件:OAuth2Configuration.java   
@Bean
public ErrorPageFilter errorPageFilter() {
    return new ErrorPageFilter();
}
项目:stock-tracker    文件:WebConfig.java   
@Bean
public ErrorPageFilter errorPageFilter() {
    return new ErrorPageFilter();
}