When using the WebSecurityConfigurerAdapter, you can apply a configurer by default by adding it to the .META-INF/spring.factories file

org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer = sample.MyCustomDsl

We should add the same functionality to the HttpSecurity bean so that users can get this feature when configuring a SecurityFilterChain bean. Currently, the above configuration has no effect on the HttpSecurity bean.