Bom dia pessoal após ter feito as configurações e criado as claasses iniciais quando inicio o meu projeto recebo a seguinte mensagem de erro.
abr 09, 2017 11:30:43 AM org.apache.tomcat.util.digester.SetPropertiesRule begin ADVERTÊNCIA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:casadocodigo' did not find a matching property.
Abaixl vou colocar o código de todas as minhas classes ou seja controller e configuração.
Por favor, poderiam me ajudar?
insira seu código aqui
package br.com.casadocodigo.conf;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
public class ServletSpringMvc extends AbstractAnnotationConfigDispatcherServletInitializer{
@Override protected Class<?>[] getRootConfigClasses() { // TODO Auto-generated method stub return null; }
@Override protected Class<?>[] getServletConfigClasses() { return new class [] {"AppWebConfiguration"}; }
@Override protected String[] getServletMappings() { return new String [] {"/"}; }
}
package br.com.casadocodigo.conf;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.view.InternalResourceViewResolver;
import br.com.casadocodigo.controller.HomeController;
@EnableWebMvc @ComponentScan(basePackageClasses = { HomeController.class }) public class AppWebConfiguration { @Bean public InternalResourceViewResolver internalResourceViewResolver() {
InternalResourceViewResolver resolver = internalResourceViewResolver(); resolver.setPrefix("/WEB-INF/views/"); resolver.setSuffix(".jsp"); return resolver; } }
package br.com.casadocodigo.controller;
import org.springframework.stereotype.Controller;
@Controller public class HomeController { @requestMapping("/") public void index () { System.out.println("Entrando na home de CDC"); }
}