Spring 2. x framework Learning (serialization)-Understanding Spring Basics

Source: Internet
Author: User

Preface:

This article will give you a deep understanding and learning through serialization.SpringRelated core technologies and implementation principles. IncludingSpringOfBeanLifecycle management, declarative transaction management,AOPManagement, annotation application implementation, andThis section describes the extended applications.

This article will serveSpringIntroduction.

What isSpringDevelopment Framework?

SpringIsJava/JavaEEApplication development platform. The implementation is implemented by the authorRod JohnsonIn2002Published in 《Expert One-on-One J2EE Design and DevelopmentThis book is developed after summing up experience.
SpringThe core contents include::
1.Lightweight container,Provides centralized, automatic configuration, and Application Object assembly functions.

SpringProvides consistent methods for managing business objects and encourages injection of good habits of interface programming rather than class programming.SpringThe architecture is based on usagePOJOObject ManagementInversion of Control (Control reversal)Container,Non-intrusive methods are provided to provide loose coupling for some complex system applications.,Consistent service object configuration management. Containers start with quick development to facilitate development For the purpose of testability and scalability during deployment. The implementation is only for the development and testing of a single business component in an independent environment, and then integrated to anyJava SEOrJava EEEnvironment.

2.Provides unique transaction management abstraction, plug-in-based transaction management(Declarative Transaction Management)It is easy to implement Transaction Layer Management without having to understand various underlying transaction implementations, suchJTAOrJDBCTransactions provide a consistent programming model. Relative to dependency-onlyJava EECommon EnvironmentJTAOrEJB CMTMethod, SpringIt is simpler and lighter.

3.Provides unique data access abstraction, including simple and efficientJDBCFramework, greatly improving the efficiency(Greatly reduces the amount of code developed)And reduce possible errors. Based onJDBCException information is also fully followedSpringPublicDAOException level.

4. SpringThe data access layer of is integratedToplink, Hibernate, JDO, and iBATIS SQL MapsAnd so onO/R mappingSolution,Its purpose is to provide unifiedDAOSupports class implementation and transaction management policies. EspeciallyHibernatePairSpringIOCSupports features to better implement the set To make better useSpringPublic transactions andDAOException level.

5. SpringProvides a standardJavaCompiledAOPFramework(Can also be integratedAspectJ), ProvidesPOJOsDeclarative transaction management and other enterprise transactions--If you need You can also implement your ownAspects. This framework is powerful enough to allow applications to leave behindEJBWhile enjoyingEJBRelated key services. Of course, you can also choose not to supportJTADevelopment, especially if not supportedJTAOfTomcatDevelop a single database application under the server.

6.ProvideIoCPowerful and flexible container IntegrationMVC WebFramework.By providing policy interfaces and multi-view Support Technology(For exampleJSP, VelocityModule Engine, Tiles, iTextAndPOI)High configuration of the framework.SpringAs the middle layer, it can also be easily used with other third parties.Web MVCFramework Implementation integration, suchStruts, WebWork, Struct2 (StrutsAndWebWorkIntegration)AndTapestry.

Spring beanObject lifecycle management

Spring beanObject lifecycle management includesBeanAndBean. Learn moreSpring bea

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.