Olá pessoal!
Ao fazer o build, está aparecendo a mensagem Kotlin: Unresolved reference: antMatchers. O que pode ser?
@Bean
fun filterChain(http: HttpSecurity): SecurityFilterChain {
http.
authorizeHttpRequests()?.
antMatchers("/topicos")?.hasAuthority("LEITURA_ESCRITA")?.
anyRequest()?.
authenticated()?.
and()?.
sessionManagement()?.
sessionCreationPolicy(SessionCreationPolicy.STATELESS)?.
and()?.
formLogin()?.disable()?.
httpBasic()
return http.build()
}