本来想先学习SpringSide的,可本人资质愚钝,只好先学习简单点的了,Spring包中自带的JPetStore就很不错,毕竟是官方的,很值得研究,以后会不定期的贴出JPetStore的学习笔记。先从web.xml文件开始学吧,(我只贴出spring部分,struts部分暂时不学)下面是本人的分析,有不对的地方还请指正。: )
- xml version="1.0" encoding="ISO-8859-1"?>
- >
- <web-app>
- <display-name>Spring JPetStoredisplay-name>
- <description>Spring JPetStore sample applicationdescription>
-
-
- <context-param>
- <param-name>webAppRootKeyparam-name>
- <param-value>petstore.rootparam-value>
- context-param>
-
-
- <context-param>
- <param-name>log4jConfigLocationparam-name>
- <param-value>/WEB-INF/log4j.propertiesparam-value>
- context-param>
-
-
- <context-param>
- <param-name>contextConfigLocationparam-name>
- <param-value>
- /WEB-INF/dataAccessContext-local.xml /WEB-INF/applicationContext.xml
- param-value>
- context-param>
-
- <listener>
- <listener-class>org.springframework.web.context.ContextLoaderListenerlistener-class>
- listener>
-
-
-
-
- <servlet>
- <servlet-name>petstoreservlet-name>
- <servlet-class>org.springframework.web.servlet.DispatcherServletservlet-class>
- <load-on-startup>2load-on-startup>
- servlet>
-
-
- <servlet-mapping>
- <servlet-name>petstoreservlet-name>
- <url-pattern>*.dourl-pattern>
- servlet-mapping>
- <welcome-file-list>
- <welcome-file>index.htmlwelcome-file>
- welcome-file-list>
-
- web-app>
阅读(881) | 评论(0) | 转发(0) |