Skip to content

Instantly share code, notes, and snippets.

@boudhayan-dev
Last active May 1, 2021 16:26
Show Gist options
  • Save boudhayan-dev/0acd67f4eae1df0246d2e4347c837ee7 to your computer and use it in GitHub Desktop.
Save boudhayan-dev/0acd67f4eae1df0246d2e4347c837ee7 to your computer and use it in GitHub Desktop.
@Bean
@ConditionalOnBean(name = DEFAULT_FILTER_NAME)
public DelegatingFilterProxyRegistrationBean securityFilterChainRegistration(
SecurityProperties securityProperties) {
DelegatingFilterProxyRegistrationBean registration = new DelegatingFilterProxyRegistrationBean(
DEFAULT_FILTER_NAME);
registration.setOrder(securityProperties.getFilter().getOrder());
registration.setDispatcherTypes(getDispatcherTypes(securityProperties));
return registration;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment