Skip to content

Instantly share code, notes, and snippets.

@boudhayan-dev
Created May 1, 2021 18:34
Show Gist options
  • Save boudhayan-dev/92e7772f573fd856e25b247dd3eeb6c7 to your computer and use it in GitHub Desktop.
Save boudhayan-dev/92e7772f573fd856e25b247dd3eeb6c7 to your computer and use it in GitHub Desktop.
@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