本文整理匯總了Java中org.springframework.boot.web.support.ErrorPageFilter類的典型用法代碼示例。如果您正苦於以下問題:Java ErrorPageFilter類的具體用法?Java ErrorPageFilter怎麽用?Java ErrorPageFilter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ErrorPageFilter類屬於org.springframework.boot.web.support包,在下文中一共展示了ErrorPageFilter類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: disableSpringBootErrorFilter
import org.springframework.boot.web.support.ErrorPageFilter; //導入依賴的package包/類
@Bean
public FilterRegistrationBean disableSpringBootErrorFilter(ErrorPageFilter filter) {
FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
filterRegistrationBean.setFilter(filter);
filterRegistrationBean.setEnabled(false);
return filterRegistrationBean;
}
開發者ID:Pivopil,項目名稱:spring-boot-oauth2-rest-service-password-encoding,代碼行數:8,代碼來源:OAuth2Configuration.java
示例2: disableSpringBootErrorFilter
import org.springframework.boot.web.support.ErrorPageFilter; //導入依賴的package包/類
@Bean
public FilterRegistrationBean disableSpringBootErrorFilter(final ErrorPageFilter filter) {
final FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
filterRegistrationBean.setFilter(filter);
filterRegistrationBean.setEnabled(false);
return filterRegistrationBean;
}
示例3: errorPageFilter
import org.springframework.boot.web.support.ErrorPageFilter; //導入依賴的package包/類
@Bean
public ErrorPageFilter errorPageFilter() {
return new ErrorPageFilter();
}
開發者ID:Pivopil,項目名稱:spring-boot-oauth2-rest-service-password-encoding,代碼行數:5,代碼來源:OAuth2Configuration.java
示例4: errorPageFilter
import org.springframework.boot.web.support.ErrorPageFilter; //導入依賴的package包/類
@Bean
public ErrorPageFilter errorPageFilter() {
return new ErrorPageFilter();
}