Spring Introduction and common terminology

Source: Internet
Author: User

1. Introduction

The following issues are often encountered in developing applications:

1) high coupling of code;

2) The dependencies between objects are cumbersome to handle;

3) transaction control cumbersome;

2. Spring Introduction

1) Spring Overview

What is spring:

①spring is a lightweight DI/IOC and AOP container framework. The meaning of existence is to build a lightweight Java EE application;

②spring to manage your code in a non-intrusive way, spring advocates "least intrusive", which means you can install or unload spring at the right time.

Objective: To solve the complexity of enterprise application development;

Function: Use basic JavaBean instead of EJB, and provide more enterprise application function;

Scope: any Java application;

In short, spring is a lightweight control inversion (IoC) and aspect-oriented (AOP) container framework.

2) Common terminology in spring

① Framework: Is able to complete a certain function of semi-finished products, such as we can use the framework for shopping site development, framework to do part of the function, we do some of our own functions, so that the application is created;

② non-intrusive design: From the perspective of the framework can be understood, without inheriting the class provided by the framework, this design can be seen as a non-intrusive design, if the class that inherits these frameworks is intrusive design, if it is intrusive design, later want to replace the framework, the previously written code is almost impossible to reuse, if the non-intrusive design, The previous code can still be reused;

③ Lightweight and heavyweight: Lightweight is relative to heavyweight, lightweight is generally non-invasive, relies on very few things, very little resources, deployment simple and so on, in fact, is relatively easy to use, and the weight of the exact opposite.

④ container: From the point of view of program design, the container is the appliance of the object, because there are put, take out and so on, so the container also manages the object's life cycle.

    

  

3) Spring's advantages:

① low intrusion, low coupling (reduce the coupling between components, to achieve decoupling between the various layers of software);

② declarative transaction management;

③ facilitates integration of other frameworks;

④ reduce the difficulty of Java EE development;

The ⑤spring framework includes solutions for each layer of the Java EE Three layer (presentation layer, business logic layer, persistence layer) (one-stop);

Spring Introduction and common terminology

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.