Manually create Spring framework and Spring framework

Source: Internet
Author: User

Manually create Spring framework and Spring framework

I have been studying the framework for video tutorials, And I have provided the project Source Code. It is always very easy to follow the video coding. Now I want to learn more about it and manually build it by downloading files from the official website, many problems are recorded as follows.

First get familiar with spring's official website: http://spring.io/

Spring is a Project in Spring, the home page is Project --> Spring Framework: http://projects.spring.io/spring-framework/

This section describes the basic configuration of spring framework and the spring environment built using maven. Here we need to manually set up maven not applicable. First download the jar package of spring.

Spring at github address: https://github.com/spring-projects/spring-framework/releases

This is the address of the spring repository, which can be downloaded directly.

For example: spring-framework-3.2.8.RELEASE, the directory results are as follows:

Docs: spring official manual

Libs: All jar packages of spring framework,

Schema: xml constraint file. eclipse prompts you to import it from this

 

 

The official Spring website provides a total of 20 packages. The functions of each package are as follows:
Org. springframework. aop-3.0.6.RELEASE

Spring's Aspect-Oriented Programming, providing AOP (Aspect-Oriented Programming) Implementation

Org. springframework. asm-3.0.6.RELEASE

Spring Independent asm Program. In Spring 2.5.6, The asmJar package 3.0.6 is required to provide its own asmJar.

Org. springframework. aspects-3.0.6.RELEASE

Spring provides the integration of the AspectJ framework

Org. springframework. beans-3.0.6.RELEASE

SpringIoC (dependency injection) basic implementation

Org. springframework. context. support-3.0.6.RELEASE

Spring-context extension support for MVC

Org. springframework. context-3.0.6.RELEASE

Spring provides expansion services on basic IoC functions, and also supports many enterprise-level services, such as mail service, task scheduling, JNDI positioning, EJB integration, remote access, caching, and encapsulation of various view layer frameworks.

Org. springframework. core-3.0.6.RELEASE

Spring3.0.6 core Toolkit

Org. springframework. expression-3.0.6.RELEASE

Spring Expression Language

Org. springframework. instrument. tomcat-3.0.6.RELEASE

Spring3.0.6 integration with Tomcat connection pool

Org. springframework. instrument-3.0.6.RELEASE

Proxy interfaces for servers in Spring3.0.6

Org. springframework. jdbc-3.0.6.RELEASE

Simple encapsulation of JDBC

Org. springframework. jms-3.0.6.RELEASE

Simple encapsulation to simplify the use of JMS APIs

Org. springframework. orm-3.0.6.RELEASE

Integrate third-party ORM frameworks, such as hibernate, ibatis, jdo, and spring JPA implementation

Org. springframework. oxm-3.0.6.RELEASE

Spring supports Object/XMl ing to allow switching between Java and XML

Org. springframework. test-3.0.6.RELEASE

Simple encapsulation of Junit and other testing frameworks

Org. springframework. transaction-3.0.6.RELEASE

Consistent declarative and programmatic Transaction Management for JDBC, Hibernate, JDO, JPA, etc.

Org. springframework. web. portlet-3.0.6.RELEASE

MVC implementation based on protlet

Org. springframework. web. servlet-3.0.6.RELEASE

Servlet-based MVC implementation

Org. springframework. web. struts-3.0.6.RELEASE

Support for Struts Integration

Org. springframework. web-3.0.6.RELEASE

SpringWeb Toolkit

 

At that time, I thought that I had configured the spring environment when I imported these jar packages, but an error occurred while running the jar packages that spring depends on.

① Public packages on which the Spring project depends
Commons-logging-1 [1]. 0.4.jar (this package is required if Spring is used; otherwise, the project will not start)

② Packages dependent on when Spring AOP is used
Aspectjweaver-1 [1]. 5.3.jar
The jar package of the aopalliance-1.0.jar may cause an exception because a jar package with the same prefix but not needed in lib can be deleted.

③ Packages dependent on Spring JDBC
Commons-dbcp.jar
Commons-pool.jar
Commons-collections-2.1.1.jar (Some people say this jar package must be available, but it can run without being introduced, now this record, if there is a problem, you can consider this factor ).

 

Related Article

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.