免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1231 | 回复: 0
打印 上一主题 下一主题

JpetStore学习(一) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-28 22:30 |只看该作者 |倒序浏览

本来想先学习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>  

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/67865/showart_714757.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP