Created
September 13, 2017 19:49
-
-
Save keysecf/3fd2c3db8e3bb2ee38f4943a3ea6e4ee to your computer and use it in GitHub Desktop.
ServletSpringMVC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.casadocodigo.loja.conf; | |
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; | |
public class ServletSpringMVC extends AbstractAnnotationConfigDispatcherServletInitializer{ | |
@Override | |
protected Class<?>[] getRootConfigClasses() { | |
return null; | |
} | |
@Override | |
protected Class<?>[] getServletConfigClasses() { | |
return new Class[] {AppWebConfiguration.class, JPAConfiguration.class}; | |
} | |
@Override | |
protected String[] getServletMappings() { | |
return new String[] {"/"}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment