<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    cuiyi's blog(崔毅 crazycy)

    記錄點(diǎn)滴 鑒往事之得失 以資于發(fā)展
    數(shù)據(jù)加載中……

    Download of Spring Framework

    Spring has upgrade their website as spring.io

    And the download of zip files has become a bit confusion.
    Base on 
    You now have to download the zip files form their repository, as stated here: 
    https://github.com/spring-projects/spring-framework/wiki/Downloading-Spring-artifacts 
    (statement at the bottom of the page).

    Download cannot proceed without account/login, so I decide to the below page and download jar by jar.
    mvnrepository.com/artifact/org.springframework

    When come to "spring-security-core", I question myself that how I can get all dependent jar files.
    With this question, I find the direct link to download the whole zip file:
    http://repo.spring.io/release/org/springframework/spring
    or
    https://github.com/spring-projects/spring-framework/releases

    Also, there is another DIY solution from Spring website 
    https://github.com/spring-projects/spring-framework/wiki/Downloading-Spring-artifacts
    (statement at the bottom of the page).
    Also, some folks are already provided the detailed steps:
    The solution I prefer is using Maven, it is easy and you don't have to download each jar alone. you can do it with the following steps:

    1. Create an empty folder in anywhere with any name you prefer, for example spring-source
    2. Create a new file named pom.xml
    3. Copy the following in this file
    4. Open the spring-source folder in your console
    5. Run mvn install
    6. After download finished, you'll find spring jars in /spring-source/target/dependencies
    Configuration is as below:
    <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>spring-source-download</groupId>
      <artifactId>SpringDependencies</artifactId>
      <version>1.0</version>
      <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      </properties>
      <repositories>
        <repository>
          <id>repository.spring.release</id>
      <name>Spring GA Repository</name>
          <url>http://repo.spring.io/release</url>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
      <dependencies>
        <!--each dependency refer to
               corresponding project under 
    http://spring.io/projects-->
      <!--spring-framework-->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>4.0.0.RELEASE</version>
        </dependency>
        <!--spring-security-->
      <!--
    <dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-web</artifactId>
    <version>3.2.0.RELEASE</version>
    </dependency>
    <dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-config</artifactId>
    <version>3.2.0.RELEASE</version>
    </dependency>
    -->
    <!--spring-webflow-->
    <!--
    <dependency>
    <groupId>org.springframework.webflow</groupId>
    <artifactId>spring-webflow</artifactId>
    <version>2.3.2.RELEASE</version>
        </dependency>
    -->
    </dependencies>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-dependency-plugin</artifactId>
                <version>2.8</version>
                <executions>
                  <execution>
                    <id>download-dependencies</id>
                      <phase>generate-resources</phase>
                        <goals>
                          <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                          <outputDirectory> ${project.build.directory}/dependencies </outputDirectory>
                        </configuration>
                  </execution>
                </executions>
          </plugin>
        </plugins>
      </build>
    </project>
    Furthermore, 
    Also, if you need to download any other spring project, just copy the dependency configuration from its corresponding web page

    For example, if you want to download Spring Web Flow jars, go to its web page, and add its dependency configuration to the pom.xml dependencies, then run mvn install again.
    <dependency>
       <groupId>org.springframework.webflow</groupId>
        <artifactId>spring-webflow</artifactId>
        <version>2.3.2.RELEASE</version>
    </dependency>


    引用一個(gè)文章:如何在項(xiàng)目中引入Spring框架(2010-05-26)

    spring的jar包說(shuō)明如下:

    >>spring.jar 
    是包含有完整發(fā)布模塊的單個(gè)jar 包。
    但是不包括mock.jar, aspects.jar, spring-portlet.jar, and spring-hibernate2.jar。
          
    spring-src.zip就是所有的源代碼壓縮包。

    除了spring.jar 文件,Spring 還包括有其它21 個(gè)獨(dú)立的jar 包,各自包含著對(duì)應(yīng)的Spring組件,用戶可以根據(jù)自己的需要來(lái)選擇組合自己的jar 包,而不必引入整個(gè)spring.jar 的所有類文件。

    >>spring-core.jar
    這個(gè)jar 文件包含Spring 框架基本的核心工具類。Spring 其它組件要都要使用到這個(gè)包里的類,是其它組件的基本核心,當(dāng)然你也可以在自己的應(yīng)用系統(tǒng)中使用這些工具類。

    外部依賴Commons Logging, (Log4J)。

    >>spring-beans.jar
    這個(gè)jar 文件是所有應(yīng)用都要用到的,它包含訪問(wèn)配置文件、創(chuàng)建和管理bean 以及進(jìn)行Inversion of Control / Dependency Injection(IoC/DI)操作相關(guān)的所有類。如果應(yīng)用只需基本的IoC/DI 支持,引入spring-core.jar 及spring-beans.jar 文件就可以了。

    外部依賴spring-core,(CGLIB)。

    >>spring-aop.jar
    這個(gè)jar 文件包含在應(yīng)用中使用Spring的AOP 特性時(shí)所需的類和源碼級(jí)元數(shù)據(jù)支持。使用基于AOP 的Spring特性,如聲明型事務(wù)管理(Declarative Transaction Management),也要在應(yīng)用里包含這個(gè)jar包。

    外部依賴spring-core, (spring-beans,AOP Alliance, CGLIB,Commons Attributes)。

    >>spring-context.jar
    這個(gè)jar 文件為Spring核心提供了大量擴(kuò)展。可以找到使用Spring ApplicationContext特性時(shí)所需的全部類,JDNI 所需的全部類,instrumentation組件以及校驗(yàn)Validation 方面的相關(guān)類。

    外部依賴spring-beans, (spring-aop)。

    >>spring-dao.jar
    這個(gè)jar 文件包含Spring DAO、Spring Transaction 進(jìn)行數(shù)據(jù)訪問(wèn)的所有類。為了使用聲明型事務(wù)支持,還需在自己的應(yīng)用里包含spring-aop.jar。
          
    外部依賴spring-core,(spring-aop, spring-context, JTA API)。

    >>spring-jdbc.jar
    這個(gè)jar 文件包含對(duì)Spring 對(duì)JDBC 數(shù)據(jù)訪問(wèn)進(jìn)行封裝的所有類。

    外部依賴spring-beans,spring-dao。

    >>spring-support.jar
    這個(gè)jar 文件包含支持UI模版(Velocity,F(xiàn)reeMarker,JasperReports),郵件服務(wù),腳本服務(wù)(JRuby),緩存Cache(EHCache),任務(wù)計(jì)劃Scheduling(uartz)方面的類。

    外部依賴spring-context, (spring-jdbc, Velocity, FreeMarker, JasperReports, BSH, Groovy, JRuby, Quartz, EHCache)

    >>spring-web.jar
    這個(gè)jar 文件包含Web 應(yīng)用開(kāi)發(fā)時(shí),用到Spring 框架時(shí)所需的核心類,包括自動(dòng)載入Web Application Context 特性的類、Struts 與JSF 集成類、文件上傳的支持類、Filter 類和大量工具輔助類。

    外部依賴spring-context, Servlet API, (JSP API, JSTL, Commons FileUpload, COS)。

    >>spring-webmvc.jar
    這個(gè)jar 文件包含Spring MVC 框架相關(guān)的所有類。包括框架的Servlets,Web MVC框架,控制器和視圖支持。當(dāng)然,如果你的應(yīng)用使用了獨(dú)立的MVC 框架,則無(wú)需這個(gè)JAR 文件里的任何類。

    外部依賴spring-web, (spring-support,Tiles,iText,POI)。

    >>spring-portlet.jar
    spring自己實(shí)現(xiàn)的一個(gè)類似Spring MVC的框架。包括一個(gè)MVC框架和控制器。

    外部依賴spring-web, Portlet API,(spring-webmvc)。

    >>spring-struts.jar
    Struts框架支持,可以更方便更容易的集成Struts框架。

    外部依賴spring-web,Struts。

    >>spring-remoting.jar
    這個(gè)jar 文件包含支持EJB、遠(yuǎn)程調(diào)用Remoting(RMI、Hessian、Burlap、Http Invoker、JAX-RPC)方面的類。

    外部依賴spring-aop, (spring-context,spring-web,Hessian,Burlap,JAX-RPC,EJB API)。

    >>spring-jmx.jar
    這個(gè)jar包提供了對(duì)JMX 1.0/1.2的支持類。      

    外部依賴spring-beans,spring-aop, JMX API。

    >>spring-jms.jar
    這個(gè)jar包提供了對(duì)JMS 1.0.2/1.1的支持類。

    外部依賴spring-beans,spring-dao,JMS API。

    >>spring-jca.jar
    對(duì)JCA 1.0的支持。

    外部依賴spring-beans,spring-dao, JCA API。

    >>spring-jdo.jar
    對(duì)JDO 1.0/2.0的支持。      

    外部依賴spring-jdbc, JDO API, (spring-web)。

    >>spring-jpa.jar
    對(duì)JPA 1.0的支持。

    外部依賴spring-jdbc, JPA API, (spring-web)。

    >>spring-hibernate2.jar
    對(duì)Hibernate 2.1的支持,已經(jīng)不建議使用。

    外部依賴spring-jdbc,Hibernate2,(spring-web)。

    >>spring-hibernate3.jar
    對(duì)Hibernate 3.0/3.1/3.2的支持。

    外部依賴spring-jdbc,Hibernate3,(spring-web)。

    >>spring-toplink.jar
    對(duì)TopLink框架的支持。

    外部依賴spring-jdbc,TopLink。

    >>spring-ibatis.jar
    對(duì)iBATIS SQL Maps的支持。

    外部依賴spring-jdbc,iBATIS SQL Maps。

    >>spring-mock.jar
    這個(gè)jar 文件包含Spring 一整套mock 類來(lái)輔助應(yīng)用的測(cè)試。Spring 測(cè)試套件使用了其中大量mock 類,這樣測(cè)試就更加簡(jiǎn)單。模擬HttpServletRequest 和HttpServletResponse 類在Web 應(yīng)用單元測(cè)試是很方便的。并且提供了對(duì)JUnit的支持。

    外部依賴spring-core。

    >>spring-aspects.jar
    提供對(duì)AspectJ的支持,以便可以方便的將面向方面的功能集成進(jìn)IDE中,比如Eclipse AJDT。

    外部依賴。


    WEAVER JARS (dist/weavers)說(shuō)明:

    >>spring-agent.jar
    Spring的InstrumentationSavingAgent (為InstrumentationLoadTimeWeaver),一個(gè)設(shè)備代理包,可以參考JDK1.5的Instrumentation功能獲得更多信息。

    外部依賴none (for use at JVM startup: "-javaagent:spring-agent.jar")。

    >>spring-tomcat-weaver.jar
    擴(kuò)展Tomcat的ClassLoader,使其可以使用instrumentation(設(shè)備)類。

    外部依賴none (for deployment into Tomcat's "server/lib" directory)。

    如果需要使用JSP語(yǔ)言作為Spring's web MVC tags的參數(shù),則需要JSP 2.0的支持。或者選擇Jakarta的JSTL (standard.jar)。

    posted on 2014-01-06 19:08 crazycy 閱讀(865) 評(píng)論(0)  編輯  收藏 所屬分類: JavaEE技術(shù)

    主站蜘蛛池模板: 亚洲AV日韩AV一区二区三曲| 在线a人片天堂免费观看高清| 亚洲av成人中文无码专区| 亚洲第一精品福利| 亚洲国产成人久久笫一页| 毛片免费在线视频| **一级一级毛片免费观看| 男女一进一出抽搐免费视频| 亚洲精品久久无码av片俺去也| 久久精品亚洲精品国产色婷| 亚洲午夜无码久久久久| 无码欧精品亚洲日韩一区夜夜嗨 | 男女交性永久免费视频播放| 一级毛片免费观看不卡视频| 特级做a爰片毛片免费看| 久久亚洲中文无码咪咪爱| 自拍偷区亚洲国内自拍| 亚洲国产成人精品无码一区二区 | 美女羞羞视频免费网站| 亚洲欧美国产精品专区久久| 亚洲国产成a人v在线| 亚洲人成网站在线播放影院在线| 亚洲精品无码专区在线在线播放| 亚洲日韩在线观看| 久久久久国产成人精品亚洲午夜 | 亚洲成av人片在线天堂无| 亚洲日韩国产精品乱-久| 精品亚洲AV无码一区二区| 亚洲午夜一区二区电影院| 亚洲国产成人精品无码区在线秒播| 久久久久亚洲av无码专区导航| 亚洲av无码片在线播放| 亚洲AV无码专区电影在线观看| 国产成人亚洲精品青草天美| 国产亚洲婷婷香蕉久久精品| 国产亚洲一区二区三区在线| 亚洲第一区香蕉_国产a| 中文字幕亚洲色图| 亚洲一区电影在线观看| 亚洲看片无码在线视频| 亚洲youwu永久无码精品|