12. DispatcherServlet
1. DispatcherServlet HTTP request
Spring MVC framework
2. Web layer Spring
Container(WebApplicationContext), BO
layer Spring Container(ApplicationContext)
Web layer bean BO layer bean ?
3. initial Spring MVC Component,
DispatcherServlet ?
13. 1. DispatcherServlet HTTP request
Spring MVC framework
/WEB-INF/servlet-name-servlet.xml
Web layer Spring Container
14. Web layer Spring Container(WebApplicationContext),
BO layer Spring Container(ApplicationContext)
Web layer bean BO layer bean ?
15. Web Layer Spring Container
BO Layer Spring ContainerBO Layer Spring ContainerBO Layer Spring ContainerBO Layer Spring ContainerBO Layer Spring Container
Children Container
Parent Container
BO Layer can not call Web Layer
Web Layer can call BO Layer
41. • Spring MVC Model
• @ModelAttribute return add Model
• Session @SessionAttributes(“xxx”) xxx
xxx Model
• @ModelAttribute(“xxx”)
1. Model xxx
2. xxx session Class @SessionAttributes(“xxx”)
HttpSesionRequiredException
3. Model xxx session request
@SessionAttributes