1
resposta

error WebSecurityConfigurerAdapter

package com.springboot.springforum.security;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;


@EnableWebSecurity
@Configuration
public class SecurityConfigurations extends WebSecurityConfigurerAdapter {

}

Error no projeto The type org.springframework.security.config.annotation.web.builders.WebSecurity cannot be resolved. It is indirectly referenced from required .class files

1 resposta

Oi Julio,

Deve ter dado algum problema no Maven ao baixar as dependências do Spring Security.

Tenta fazer assim: botão direito em cima do projeto -> Maven -> Update Project...

E veja se resolve.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software