Since Spring Security 5.7.0-M2 the [WebSecurityConfigurerAdapter is deprecated](https://github.com/spring-projects/spring-security/issues/10822).