getServletConfigClasses() vs getRootConfigClasses() when extending AbstractAnnotationConfigDispatcherServletInitializer

A Bit on ApplicationContext Hierarchies Spring’s ApplicationContext provides the capability of loading multiple (hierarchical) contexts, allowing each to be focused on one particular layer, such as the web layer of an application or middle-tier services. One of the canonical examples of using hierarchical ApplicationContext is when we have multiple DispatcherServlets in a web application and … Read more