Pessoal, boa tarde! Eu de novo por aqui! Pós adicionar a biblioteca springdoc e, realizar as devidas alterações no método "SecurityFilterChain", estou tomando um erro no navegador: "Acesso ao localhost negado".
Segue o método SecurityFilterChain:
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
return http.csrf(csrf -> csrf.disable())
.sessionManagement(sm -> sm.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.authorizeHttpRequests(req -> {
req.requestMatchers("/login").permitAll();
req.requestMatchers("/v3/api-docs/**", "/swagger-ui.html", "/swagger-ui/**").permitAll();
req.anyRequest().authenticated();
})
.addFilterBefore(filter, UsernamePasswordAuthenticationFilter.class)
.build();
}