JAVA Spring's understanding

Source: Internet
Author: User

Spring
1) Open source framework
2) IoC (control inversion), writes the creation and dependency of the class in the configuration file, is injected by the configuration file, realizes the loose coupling
3) AOP will be safe, the transaction is equal to the program logic of the relatively independent function extracted, using the spring configuration file to plug in these functions, implemented in accordance with the aspect of programming, improve the reusability of

Or a concept spring is a lightweight container (Light-weight container), the core of which is the Bean factory (Bean Factory), which constructs the M (Model) we need.

Based on this, spring provides the implementation of AOP (aspect-oriented programming, level-oriented programming) to provide services such as transactional, security, and so on, in a non-managed environment.

The expansion of the Bean factory applicationcontext more convenient for us to implement the application of the Java EE, the implementation of Dao/orm is convenient for us to develop the database;

Web MVC and the Spring Web provide a framework for Java Web applications or integrate with other popular web frameworks.

In addition, you say the duplicate commits, that is the browser problem, and structs irrelevant. See how you command the browser, if you use redirect, there is no repetition of the problem, because the browser has been redirected. But you use forward, that is, when you refresh the time is to repeat the submission.
Spring is more emphasis on the business layer, on the page is generally not displayed. Of course, if you use spring's MVC exception.

JAVA Spring's understanding

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.