ApplicationContext and Hierarchy
Root ApplicationContext:
Manages core application components (services, business logic).
Loaded through ContextLoaderListener.
WebApplicationContext:
Child of the root context.
Manages web-specific components.
Hierarchy Relationship:
Root context is the parent for all WebApplicationContexts.
Promotes hierarchical structure for bean management.
Sharing Beans:
Beans from the root context can be accessed by all DispatcherServlets.
Негізгі бет 43. Spring Dispatcher Servlet with Context Configuration
Пікірлер