Created
May 1, 2021 18:34
-
-
Save boudhayan-dev/92e7772f573fd856e25b247dd3eeb6c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class FilterConfiguration { | |
@Bean | |
public FilterRegistrationBean<DelegatingFilterProxy> getDelegatFilterRegistrationBean(){ | |
DelegatingFilterProxy delegateFilterProxy = new DelegatingFilterProxy(new LogFilter()); | |
FilterRegistrationBean<DelegatingFilterProxy> regBean = new FilterRegistrationBean<>(delegateFilterProxy); | |
regBean.setOrder(-150); | |
regBean.setName("LoggerDelegatingFilterProxy"); | |
return regBean; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment