From c5250929f57a454d5f0fd75dde13892e3010797b Mon Sep 17 00:00:00 2001 From: chaos2418 <> Date: Thu, 30 Dec 2021 10:34:14 +0530 Subject: [PATCH] JAVA-8695: GitHub Issue: Order in FilterRegistrationBean is ignored --- .../main/java/com/baeldung/bootcustomfilters/FilterConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-modules/spring-boot-basic-customization/src/main/java/com/baeldung/bootcustomfilters/FilterConfig.java b/spring-boot-modules/spring-boot-basic-customization/src/main/java/com/baeldung/bootcustomfilters/FilterConfig.java index 42da61fe14..2bc1b8a55c 100644 --- a/spring-boot-modules/spring-boot-basic-customization/src/main/java/com/baeldung/bootcustomfilters/FilterConfig.java +++ b/spring-boot-modules/spring-boot-basic-customization/src/main/java/com/baeldung/bootcustomfilters/FilterConfig.java @@ -15,6 +15,7 @@ public class FilterConfig { registrationBean.setFilter(new RequestResponseLoggingFilter()); registrationBean.addUrlPatterns("/users/*"); + registrationBean.setOrder(2); return registrationBean;