Pessoal tudo bem ?
Estou com o seguinte problema, ao criar as classes SecurityConfiguration e SpringSecurityFilterConfiguration, fazendo a configuracao em ServletSpringMVC no metodo root, minha aplicacao para de funcionar
public class SpringSecurityFilterConfiguration extends AbstractSecurityWebApplicationInitializer {
}
@EnableWebMvcSecurity
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
}
public class ServletSpringMVC extends AbstractAnnotationConfigDispatcherServletInitializer {
@Override
protected Class<?>[] getRootConfigClasses() {
return new Class[] { SecurityConfiguration.class, AppWebConfiguration.class, JPAConfiguration.class };
}
Ao iniciar a aplicacao ocorre o seguinte erro:
HTTP Status 404 – Not Found
Type Status Report
Message /casadocodigo/produtos
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
POM.XML
as dependencias usado para o spring security é o mesmo fornecido em aulas pelo professor :D
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>4.0.0.M2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<version>4.0.0.M2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>4.1.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>4.0.0.M2</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
Segue o erro que é estourado no console do eclipse.
https://gist.github.com/sleepk/c38373c8b35769f2cd5e9e5e276d5d05
Segue o link do bitbucket aonde esta armazendo o projeto em questao: