Installation and use of the spring plug-in in eclipse

Source: Internet
Author: User

One installation Process

    1, Help--install New software--add address http://dist.springsource.com/release/TOOLS/update/e4.5/in work with,

The final version number is modified according to your eclipse version, and eclipse will download the corresponding spring plugin based on that address.

How to view the Eclipse version number:

Under installation directory for Eclipse, double-click the eclipseproduct file to view the version number

2, can also download the corresponding Eclipse version of the spring plug-in to the official website, directly add the plug-in jar package to work with, URL: https://spring.io/tools/sts/all

3. Restart Eclipse after installation is complete

4. Create a new spring Bean Configuration File under any project Src folder, typically named Applicationcontext.xml

5, generally can appear the following panel, it means that the installation was successful

Second, the use of sprig

1.Spring function:

1. Huge ecosystem, all-round player! "Springmvc is one of its sub-modules, JdbcTemplate can operate the database directly!" 】

2. Glue the other components together

The 3.IOC container and the Aop[aspect oriented programming]:spring are an IOC (DI) and an AOP container framework.

Spring's ioc[inverse of controller] mechanism (control inversion and dependency injection) is exactly where it is.

Spring's IOC (control inversion and dependency injection)

Control reversal [IOC]: It is the (dependency) Relationship between the container control programs, not the traditional implementation, which is manipulated directly by the program code.

Inversion of control is an idea (concept), and its concrete implementation is dependency injection!

Dependency injection [di:dependency injection]: Dependencies between components are determined by the container at run time, and the container dynamically injects some kind of dependency into the component .

  2. Build the development environment required for the spring IOC container

1. Import the jar package required by the IOC container

Spring-beans-4.0.0.release.jar

Spring-context-4.0.0.release.jar

Spring-core-4.0.0.release.jar

Spring-expression-4.0.0.release.jar

Commons-logging-1.1.3.jar

2. Create spring config file [spring bean configuration file]--is generally named Applicationcontext.xml

  3.IOC Container Creation Object step

1. Create an IOC container object

2. Use the IOC container to assign values to an object's properties while creating the object

Installation and use of the spring plug-in in eclipse

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.