PARA FAZER A LIBERAÇÃO DA REQUISIÇÃO DE LOGIN SE USA ESSA CONFIGURAÇÃO ABAIXO NA AULA 07 Autenticando o usuário, PORÉM ESTOU USANDO O SPRING 3.1.1 NESSA VERSÃO NÃO FUNCIONA.QUAL SERIA A SOLUÇÃO.
@Bean public SecurityFilterChain (HttpSecurity http) throws Exception { return http.csrf().disable() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and().authorizeRequests() .antMatchers(HttpMethod.POST, "/login").permitAll() .anyRequest().authenticated() .and().build(); }