I want to know the purpose of below methods inside the class when the class extends AbstractAnnotationConfigDispatcherServletInitializer
protected Class[] getRootConfigClasses() { return new Class[0]; }
@Override
- protected Class[] getServletConfigClasses() { return new Class[] { testAPI.class }; } 3.@Override protected String[] getServletMappings() { return new String[] { "/" }; }