JPetStor (Spring Sample) 的分析
1. 启动:
1.1)分析web系统首先分析 web.xml , JPetStor 中 将所有 *.do 映射到 org.springframework.web.servlet.DispatcherServlet ,本映射会在application deployed 时候由WEB进行初始化。
1.2)application deploy 时候,启动spring需要的两个 Context ,其中包括两个Context 文件 /WEB-INF/dataAccessContext-local.xml /WEB-INF/applicationContext.xml
2. 用户登陆部分
2.1)form POST数据到 /shop/signon.do ,*.do 映射到 org.springframework.web.servlet.DispatcherServlet
1. 启动:
1.1)分析web系统首先分析 web.xml , JPetStor 中 将所有 *.do 映射到 org.springframework.web.servlet.DispatcherServlet ,本映射会在application deployed 时候由WEB进行初始化。
1.2)application deploy 时候,启动spring需要的两个 Context ,其中包括两个Context 文件 /WEB-INF/dataAccessContext-local.xml /WEB-INF/applicationContext.xml
2. 用户登陆部分
2.1)form POST数据到 /shop/signon.do ,*.do 映射到 org.springframework.web.servlet.DispatcherServlet
本文分析了JPetStor项目的Spring MVC架构。重点介绍了系统启动过程中的配置加载及用户登录流程。启动时,系统通过web.xml配置DispatcherServlet,并初始化两个Spring Context。用户登录时,表单数据会POST到指定URL,由DispatcherServlet处理。

被折叠的 条评论
为什么被折叠?



