diff options
author | Vitaly Takmazov | 2022-12-08 10:54:07 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-08 10:54:07 +0300 |
commit | 2121aa50cc3506950eb1947d053a44a1790cf2f2 (patch) | |
tree | 72c61d553e9f4ec988e6011803bbd7037aa6bbf7 /src/main/java | |
parent | 6351b30a8e38dd5c302b9535d217aec0b54acc97 (diff) |
Restore Spring Boot error filter configuration
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/juick/config/WebConfig.java | 13 |
1 files changed, 0 insertions, 13 deletions
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; - } } |