Baidu Encyclopedia say:
Spring is an open source framework, and spring is a lightweight Java development framework that was created in 2003 by Rod Johnson. In short, spring is a layered javase/eefull-stack ( one-stop) lightweight open-source framework. Click to view
WiKi say:
The Spring Framework is an open-source Java/java EE full-featured Stack (full-stack) application framework, published as an Apache license, as well. The migration version on the net platform. The framework is based on the code in the Expert one-on-one Java EE Design and development (ISBN 0-7645-4385-7) book, originally developed by Rod Johnson and Juergen Hoeller. The Spring Framework provides a simple development approach that avoids the large number of property files and helper classes that can cause the underlying code to become cluttered. Click to view
Read the network commentary, combined with my knowledge and summarize the information to share the views;
Below we say:
As Wikipedia says, the full name of spring is spring framwork. It is a big God named Rod Johnson, in order to solve the Java EE System Framework is bloated, inefficient, out of the abyss of a framework, this framework is a lightweight, smart, easy to develop, test and deploy a lightweight development framework, it provides enterprise developers with great convenience. Spring can do a lot of things, its focus on the service domain is the Java EE Enterprise Application, it brings from top to bottom throughout the project, from the performance layer, the business layer to the persistence layer, it can be said that it has a competent place.
Spring is one of the most popular frameworks, from millions of of the world's developers in the use of its features for project construction, as a lightweight, open source project architecture, will attract the attention of the world's program enthusiasts, through the study of source code, understand the spring principle, So that it can be used more flexibly and quickly. Spring is to solve the complexity of enterprise-level development, we use the ordinary Pojo (PS can not follow the JavaBean specification) can use it, to avoid the bloated traditional EJB, can be loosely coupled, so that we only focus on the implementation of the business, greatly simplifying the Java development workload.
Spring Frame diagram
What are the main attribute values of spring's use?
1. Easy decoupling using IOC
One of spring's powerful features is that the IOC control inversion is also known as Dependency Injection Dependency Injection (DI), which allows us to manage our objects by configuring JavaBean in a container, and we never have to worry about single or multiple cases, or new objects. Then a set property, through spring one step, you just have to be responsible for the implementation of the upper application.
2. Programming AOP for Facets
Spring provides the polygon facets feature of OOP-based AOP, which introduces cross-cutting concerns, which are common in the development process, such as logging, security, and transaction management that are used in many places, so we take them out and make a marker point for every place we need. When they want to use the initiative to come to these functions can be, so that the application object to pay more attention to their business logic, others to other applications to complete.
Other features include: declarative transactions, integration testing, persistence, compatibility, and a large number of Java APIs for us to use, so we can say that spring is really ingenious, and we want to thank Rod Johnson for his selfless dedication.
What can we learn by using spring?
1. Low-intrusive design, code pollution is very low, we can use the POJOs to develop the application, do not need to run in the EJB or other heavy-weight container.
2. It is easy to integrate third-party applications such as ORM frameworks, logging frameworks, JEE, Quartz and JDK timers, other view technologies, etc., without the exclusive nature.
2. Independent of a variety of application servers, with a strong portability of Java's basic features, based on the application of Spring framework, can truly realize the promise of write once,run anywhere.
The 4.Spring di mechanism reduces the complexity of business object substitution and improves decoupling between components.
5.Spring AOP is aspect-oriented programming, enabling centralized management of some common tasks such as security, transactions, logs, and more, providing better reuse
6.Spring does not force the application to rely entirely on spring, and developers are free to choose part or all of the spring framework for on demand.
To summarize:
In this chapter we mainly introduce spring's basic outline, know where spring comes from, his main features IOC and AOP and other features, as well as explain the advantages of spring in enterprise development can bring us, As for the sping of the seven management modules we will be categorized to carry out detailed explanations, today to here, thank you. If you like this article, please follow the public number below for the latest news articles.
The first quarter of the basic course of spring stepping