Spring Download and Installation

Source: Internet
Author: User

After the spring official website revision, many items of the complete zip package download Link has been hidden, although spring is designed to guide you to use a more "tall" maven way to manage the dependent jar package, but completely did not think of China's national conditions, in the Great Wall, directly through maven download things outside the wall , either turtle speed, or directly be harmonious.

Here are some of the methods collected from the Internet, which can be used to download spring full Dist.zip

First Kind

Direct

http://repo.springsource.org/libs-release-local/org/springframework/spring/3.2.8.RELEASE/ Spring-framework-3.2.8.release-dist.zip

http://repo.spring.io/libs-release-local/org/springframework/security/spring-security/3.2.3.RELEASE/ Spring-security-3.2.3.release-dist.zip
Stick directly to the Address bar or download tool, each time there is an update as long as the version number can be;

The second Kind
http://repo.springsource.org/libs-release-local/
Stick this in the address bar and you'll see a tree directory, then the first level down;

Third Kind
You'll find the spring framework in the projects on the official website, then the kitten icon on the left, jump to GitHub and find building a distribution with in the downloading artifacts below. Dependencies The super chain, go in and find the SpringSource repository, then open the Spring Repository FAQ, find libs-release-local, Go in and then point artifacts page, then in the left list first simple Brower, the following process and the second step. (However, GitHub is very unstable inside the wall, you know ...) )


Fourth type

Http://repo.spring.io/webapp/search/artifact/?0&q=spring-framework or

Http://repo.spring.io/webapp/search/artifact/?0&q=spring-security

Replace the Q keyword with the name of the spring sub-project.

To download and install spring please follow the steps below. (1) Log in to the site and download the latest stable version of spring. The latest version is spring-framework-4.0. Recommended download spring-framework-spring-framework-4.0.0.m2-distThis package contains not only the spring development package, but also the third-party class libraries that spring compiles and runs on. Unzip the downloaded package and apply the following folders to the extracted folder. Dist: This folder takes Spring's jar package, usually just spring.jar files. This folder also has some Spring-xxx.jar-like compression packages, which are sub-module compressed packages of the Spring.jar compressed package. Consider using this sub-module compression package unless you are sure that the entire Java EE application only needs to use one aspect of spring. It is generally recommended to use Spring.jar Docs: This folder contains spring-related documentation, development guides, and API reference documentation. Lib: This folder contains the third-party class libraries that spring compiles and runs on, and the class libraries under that path are not required by spring, but if you need support from a third-party class library, the class library is required. Samples: This folder contains a few simple examples of spring, which can be used as a case for spring's introductory learning. src: This folder contains all the source files of spring, if there is no place in the development process, you can refer to the source file to understand the underlying implementation.

Test: This folder contains a sample of spring.

Tiger: The path under which the contents of the JDK are stored in the unzipped folder, also contains some license and project-related files about Spring (2) Copy the Spring.jar to the project's Classpath path, and for the web app, copy the Spring.jar file to the Web-inf/lib path, which can take advantage of the spring framework. (3) Typically spring's framework also relies on some other jar files, so it is also necessary to copy the corresponding packages under Lib to the Web-inf/lib path, specifically which jar files to copy, depending on the project that the application needs to use. It is often necessary to copy the jar files under folders such as cglib,dom4j,jakarta-commons,log4j. (4) In order to compile the Java file, you can find the base class of spring and add the path of the Spring.jar file to the environment variable CLASSPATH. Of course, you can also use the Ant tool, but you don't need to add environment variables. If you use an IDE such as Eclipse or NetBeans, you do not need to set environment variables. Spring MVCThe view presentation layer of the traditional Web architecture uses struts as the presentation layer. But if you try out the MVC that comes with spring, you'll find that spring can replace struts in a general situation. In some ways, spring's MVC design is more reasonable and interesting, so try a single spring MVC.

Spring Download and Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.