如何在 Spring OAuth2 中配置未经授权的端点

how to configure unauthorized endpoint in Spring OAuth2

假设我在 http://localhost:8080/ 上启动了服务器
我如何配置才能跳过 http://localhost:8080/aaaa

上的授权
@EnableWebSecurity
@Configuration
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    public void configure(final HttpSecurity http) throws Exception {
        http
            .authorizeRequests()
            .antMatchers("/aaaa").permitAll()
            .anyRequest().authenticated();
    }
}