Spring framework Overview (1)

Source: Internet
Author: User

Spring framework Overview (1)

I am a beginner at the Spring framework. I have some theoretical knowledge about the framework and summarized my blog as a learning note.

The Core package is the most basic part of the framework and provides the IoC and dependency injection features. The basic concept here is BeanFactory, which provides the classic Implementation of the Factory mode to eliminate the need for the procedural Singleton mode, and truly allow you to separate dependencies and configurations from the program logic.

The Context encapsulation package Built on the Core encapsulation package provides a framework for object access, some of which are similar to the JNDI registrar. The Context encapsulation package feature is derived from the Beans encapsulation package, added support for international (I18N) (such as resource binding), event propagation, the method of resource loading and transparent creation of Context, such as through Servlet container.

DAO provides the JDBC abstraction layer, which can eliminate lengthy JDBC coding and parse error code unique to database vendors. In addition, the JDBC encapsulation package provides a better declarative transaction management method than programming, not only to implement specific interfaces, but also to all POJOs (plainold Java objects) applicable.

The ORM package provides an integration layer that maps common "objects/relationships" to APIs. These include JPA, JDO, Hibernate, and iBatis. Using the ORM package, you can use all the features provided by Spring to perform "Object/Link" ing, as shown in the simple declarative transaction management mentioned above.

Spring's AOP package provides aspect-orientedprogramming implementation that complies with the AOPAlliance specifications, allowing you to define, for example, method-interceptors) logically speaking, this reduces the functional coupling of the Code and is clearly separated from pointcuts. In addition, the source-level metadata function can also merge various behavior information into your code, which is a bit like the. Net attribute concept.

The Web package in Spring provides basic integration features for Web development, such as multi-party file upload, using Servletlisteners for IoC container initialization and Web application context. When Spring is used with WebWork or Struts, this package enables Spring to be combined with other frameworks.

The MVC package in Spring provides the Model-View-Controller (MVC) Implementation of Web applications. Spring's MVC Framework does not only provide a traditional implementation. It provides a clear separation model between the domain model code and webform. In addition, other features of the Spring framework can be used.

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.