November 2017
Intermediate to advanced
542 pages
14h 24m
English
The o.s.web.servlet.DispatcherServlet interface specifies configuration classes to be loaded on their own using the getServletConfigClasses() method:
//src/main/java/c/p/s/web/configuration/WebAppInitializer public class WebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { ... @Override protected Class<?>[] getServletConfigClasses() { return new Class[] { WebMvcConfig.class }; } ... @Override public void onStartup(final ServletContext servletContext) throws ServletException { // Registers DispatcherServlet super.onStartup(servletContext); } }
The DispatcherServlet class creates o.s.context.ApplicationContext, which is a child of the root ApplicationContext interface. ...
Read now
Unlock full access