Spring Source-Opening

Source: Internet
Author: User
Tags sql error

One, write a blog also has a period of time, feel things more and more, but their own things less and more, many times they are also thinking. Learning so many things, the end of the thing to know more and more less. It's strange, but it's not surprising at all.

I recently found a big problem, that is, I have been doing development for so long. Many of the principles and implementations are not very well understood, including when they pretend to know their shortcomings in the interview, but also highlight their own problems. The interviewer will ask you, do you really understand this technique? So what is the principle of its implementation, a simple description. At that time I was confused, this problem said serious also serious, said not serious is not serious.

Because, as I developed for 2 years. Development and self-accumulated application knowledge and understanding of the multi-faceted practical application, development or ease. But there are a lot of drawbacks when it comes to deep-seated applications. This is also my decision to be happy to learn the source of the first step, a lot of things actually others want you not much but fine.

Two, spring framework, basically do Java Development Program ape should be familiar with or understand it. As a basic framework for our development, he is also a development framework for the comparison of fire in recent years. In fact, the purpose of learning spring is to make yourself more aware of the core technologies. So here, my follow-up blog is basically my study of spring source of some understanding. Of course there are mistakes or incorrect ideas, please also point out!

Three

Spring is an open source framework that is created to address the complexities of enterprise application development. One of the main advantages of the framework is its layered architecture, which allows you to choose which components to use while providing an integrated framework for Java EE application development.

IV, 1) Core ContainerThis is the most basic part of the spring framework, which provides a dependency injection (dependencyinjection) feature to implement container-to-bean management. The most basic concept here is beanfactory, which is the core of any spring application.  Beanfactory is an implementation of the factory pattern, which uses IOC to isolate application configuration and dependency descriptions from the actual application code. 2) Application Context ModuleThe beanfactory of the core module makes spring a container, and the context module makes it a framework. This module extends the concept of beanfactory and adds support for internationalization (i18n) messaging, event propagation, and validation. In addition, this module provides many enterprise services, such as e-mail, jndi access, EJB integration, remote, and timing scheduling (scheduling) services.  It also includes support for template frameworks such as velocity and freemarker integration. 3) Spring's AOP moduleSpring provides rich support for slicing-oriented programming in its AOP modules. This module is the basis for implementing slice programming in spring applications. To ensure the interoperability of spring with other AOP frameworks, Spring's AOP supports APIs based on the AOP Alliance definition. An AOP consortium is an open source project whose goal is to promote the use of AOP and the interoperability of different AOP implementations by defining a common set of interfaces and components. By visiting their site, you can find out more about the AOP Alliance. Spring's AOP module also introduces metadata programming to spring.  With spring's metadata support, you can add comments to your source code, indicate where spring is and how to apply a tangent function. 4) jdbc Abstraction and DAO modulesUsing JDBC often results in a lot of duplicate code, getting a connection, creating a statement, processing a result set, and then closing the connection.  Spring's JDBC and DAO modules extract these duplicated code, so you can keep your database access code clean and concise, and prevent problems caused by the failure to shut down the database resources. This module also establishes a meaningful anomaly layer on top of the error messages given by several database servers.  So you no longer have to try to decipher the mysterious private SQL error message!  In addition, the module uses spring's AOP module to provide transaction management services for objects in spring applications. 5) Object/relational Mapping integration moduleFor those who prefer to use the object/relational mapping tool instead of using JDBC directly, Spring provides an ORM module. Instead of trying to implement its own ORM solution, Spring provides integration scenarios for several popular ORM frameworks, including Hibernate, JDO, and Ibatis SQL mappings.  Spring's transaction management supports each of these ORM frameworks, including JDBC. 6) Spring's Web moduleThe Web context module is built on the application context module and provides a context appropriate for the Web application. In addition, this module provides some service-oriented support.  For example: Multipart request for file upload, which also provides the integration of spring and other web frameworks, such as struts, webwork. 7) Spring's MVC frameworkSpring provides a full-featured MVC framework for building Web applications. Although spring can be easily integrated with other MVC frameworks, such as struts, the Spring MVC Framework uses IOC to provide a complete separation of control logic and business objects. It also allows you to declaratively bind request parameters to your business objects, and spring's MVC framework can take advantage of any other services in spring, such as internationalized information and validation.

Five, the above is basically the function of spring, as well as personal feelings, the following will update the directory!

VI. Catalogue

(1)-bean initialization of Spring Source code-1 (to be continued)

Spring Source-opening

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.