From 2121aa50cc3506950eb1947d053a44a1790cf2f2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 8 Dec 2022 10:54:07 +0300 Subject: Restore Spring Boot error filter configuration --- src/main/java/com/juick/config/WebConfig.java | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/main/java/com/juick') diff --git a/src/main/java/com/juick/config/WebConfig.java b/src/main/java/com/juick/config/WebConfig.java index c15f4c18..f2890bcd 100644 --- a/src/main/java/com/juick/config/WebConfig.java +++ b/src/main/java/com/juick/config/WebConfig.java @@ -222,17 +222,4 @@ public class WebConfig implements WebMvcConfigurer { RequestRejectedHandler requestRejectedHandler() { return new HttpStatusRequestRejectedHandler(); } - - @Bean - ErrorPageFilter errorPageFilter() { - return new ErrorPageFilter(); - } - - @Bean - FilterRegistrationBean disableSpringBootErrorFilter(ErrorPageFilter filter) { - FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(); - filterRegistrationBean.setFilter(filter); - filterRegistrationBean.setEnabled(false); - return filterRegistrationBean; - } } -- cgit v1.2.3