WebSecurityConfigurerAdapter has been deprecated in Spring Security 5.7 but the javadoc of the following classes still encourages its use: - HttpSecurity: https://github.com/spring-projects/spring-security/blob/4caf53e96dce93f9e196e8fc8c810acb14c32bed/config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java#L117-L128 - WebSecurityConfiguration: https://github.com/spring-projects/spring-security/blob/4caf53e96dce93f9e196e8fc8c810acb14c32bed/config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.java#L57 - and WebSecurity: https://github.com/spring-projects/spring-security/blob/4caf53e96dce93f9e196e8fc8c810acb14c32bed/config/src/main/java/org/springframework/security/config/annotation/web/builders/WebSecurity.java#L80