Summary of Java EE review

Source: Internet
Author: User

1. Brief description of Spring.

A) spring is a lightweight control inversion (IoC) and aspect-oriented (AOP) container framework designed to address the complexities of enterprise application development and to use basic JavaBean instead of EJBs. and provides more enterprise application capabilities.

b) Container:Spring contains and manages the configuration and lifecycle of the Application object, in this sense it is a container that accommodates and manages many objects.

c) With respect to the Ioc: control inversion, dependencies between objects are not created by the object itself, but are given by an external container.

d) About AOP: aspect-oriented programming is the extraction of a common function used by multiple objects in the system to detach from these objects, that is, to reduce the coupling between these objects, and to program this common function, through the container to apply common functionality to the system Multiple objects. For example: Log, declarative transactions can be implemented using AOP.

e) Features: Convenient decoupling, simplified development,AOP programming support, declarative transaction support, easy program testing, easy integration of various excellent frameworks and so on.

f) To sum up,Spring has the following advantages:

I. Low-intrusive design with very low code contamination

Ii. commitment to Write Once,run anywhere , independent of various application servers

Iii. Spring's DI (Dependency injection) mechanism reduces the complexity of business object substitution

Iv. Spring is not entirely dependent on spring, and developers are free to select part or all of the spring framework

2.What are the two ways to configure spring?


Summary of Java EE review

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: 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.