Olá,
A aplicação estava rodando sem senhum erro, mas após adicionar as 2 classes do vídeo 1, ela para de rodar, retorna erro 404 em qualquer parte da aplicação, seja na home, /produtos, /form... Vou colocar alguns erros que aparecem:
INFO: Spring WebApplicationInitializers detected on classpath: [br.com.casadocodigo.loja.conf.ServletSpringMVC@5e4d7f6c, br.com.casadocodigo.loja.conf.SpringSecurityFilterConfiguration@7f9c8f28]
log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
log4j:WARN Please initialize the log4j system properly.
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.servlet.Filter org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.springSecurityFilterChain() throws java.lang.Exception] threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.util.AntPathMatcher.setCaseSensitive(Z)V
Caused by: java.lang.NoSuchMethodError: org.springframework.util.AntPathMatcher.setCaseSensitive(Z)V
Feb 09, 2018 10:46:46 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Feb 09, 2018 10:46:46 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/casadocodigo] startup failed due to previous errors
Feb 09, 2018 10:46:46 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Feb 09, 2018 10:46:46 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Feb 09, 2018 10:46:46 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Feb 09, 2018 10:46:46 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8273 ms
Nessa,última parte do código do terminal parece que ele não consegue gerar a aplicação springboot.
Alguém sabe o que pode ser ?