In Spring Security 6 / Boot 3, antMatchers() is replaced by:
mvcMatchers()
authorizeHttpRequests() with .requestMatchers()
regexMatchers()
urlSecurityMatchers()
This question is part of this quiz :