Dashboard > SpringSide Wiki > HOME > Spring
  SpringSide Wiki Log In | Sign Up   View a printable version of the current page.  
  Spring
Added by SpringSideTeam, last edited by Calvin on 2007-08-20  (view change)
Labels: 

Spring 总述

1. 概述

1.1 框架概述

   Spring是SpringSide项目的基础,充当一个基础IOC框架与黏合剂的 作用。

   Spring Framework 概述 老Rod写的Spring Framework Introduction,由满江红OpenDOC 翻译。

1.2. 参考资料

    1. Spring2.0参考手册 满江红OpenDoc翻译,最新的中文参考资料。

    2.《Spring in Action》、《Pro Spring》、《Professional Java Development with the Spring Framework》 三本都是不错的入门书,都有中文版本。翻译质量如何就要先看看网上书评了,其中《Pro Spring》由夏昕翻译。
    建议买其中一本的中文版,看另外两本的英文电子版。

2. 集成指南

    以SpringSide工具新建的SpringSide项目,都默认拥有了Spring所需的所有配置文件与Jar。

    一个Spring为框架的Web项目,通常以web.xml为入口,在Web应用启动时,读入批量的配置文件,初始化配置文件里所定义的Bean,建立Spring的ApplicationContext,放入servlet-context中。

 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath*:spring/*.xml</param-value>
 </context-param> <listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 </listener>

   然后再根据与MVC框架的特点,透过不同的机制与MVC框架相结合,以之前建立的ApplicationContext为父,为各MVC框架的Controller建立一个子的ApplicationContext,从而建立一个典型的Spring管理的Web应用。

3. 使用指南

Spring Distill (SpringSide Wiki)
Spring Notes (SpringSide Wiki)

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 2006-09-07) - Bug/feature request - Contact Administrators