Skip to content

Instantly share code, notes, and snippets.

@jeetprksh
Last active August 14, 2018 07:22
Show Gist options
  • Save jeetprksh/49aa216d7a589467dc8aea383f2e6b22 to your computer and use it in GitHub Desktop.
Save jeetprksh/49aa216d7a589467dc8aea383f2e6b22 to your computer and use it in GitHub Desktop.
public class AppConfig extends AbstractAnnotationConfigDispatcherServletInitializer {
@Override
protected Class<?>[] getRootConfigClasses() {
return new Class[] { HibernateConfig.class };
}
@Override
protected Class<?>[] getServletConfigClasses() {
return new Class[] { WebMvcConfig.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