Now that the spring framework is basically used in many enterprise-level projects, why is there a spring,spring? This blog post I mainly give you a brief introduction to spring.
Java EE pros and cons
We all know that in the spring of 2003, companies generally use Java-EE technology to develop enterprise-class applications, why use the Java EE? There are several main reasons for this:
1, the Java itself cross-platform ability, portability is strong
2, Java EE Server built a large number of container services, such as transaction services, Jndi services and connection pooling services, etc.
3, programmers can be based on the Java EE API for enterprise development and deployment to the application
Although Java EE has the above advantages, but the use of Java EE Development has a fatal flaw, that is, the development of difficulties, and Java development is very easy to problem, such as database connection leakage. The advent of spring solves these problems, and as to how to solve them, we will explain them in more detail in the following articles.
What is Spring?
What is Spring? Spring is a lightweight control inversion (IoC) and aspect-oriented (AOP) container framework that is created to address the complexities of enterprise application development. Spring enables developers to write code that is cleaner, more manageable, and easier to test. about how spring specifically to achieve, this wait until our future tutorial, I will give you a detailed analysis.
Spring Benefits
After a simple understanding of spring, let's take a look at the benefits of spring.
1, convenient decoupling, simplifying development.
2, the support of AOP programming.
3. Support for declarative transactions.
4. Facilitate the testing of the program.
5, facilitate the integration of a variety of excellent frameworks.
6, reduce the use of Java EE API difficulty.
So far, I'm sure you're confused, it doesn't matter, we just need to have a simple understanding of spring for the time being. For more in-depth spring content, I will explain in detail in the following blog, please look forward to it!
Source: http://www.cnblogs.com/zs234/