spring underlying principle resolved

spring underlying principle resolved
First, the concept

1、Spring

Spring is an open source framework for the design level, he addressed a business logic layer and the other layers of loosely coupled problems, so it will be an interface-oriented programming ideas throughout the system application. You can take over the web tier, business tier, dao layer, persistence layer components, and can be configured to a variety of bean, and maintain the relationship between the bean and bean. Its core is the inversion of control (IOC), and oriented section (AOP), simply, Spring is a layered JavaSE / EE full-stack (stop) lightweight open source framework.

2、SpringMVC

Spring provides a framework for building Web applications full-featured MVC module. Use Spring pluggable MVC architecture, you can choose whether to use the built-in Web framework such as Spring Web framework or Struts. By the interface policy, Spring Framework is highly configurable, multiple view techniques, e.g. JavaServer Pages (JSP) technology, Velocity, Tiles, iText, and POI. Spring MVC framework does not know the view of the use, it will not force you to only use JSP technology. Spring MVC separation controller, model objects, as well as dispatcher role handler object, such separation to make them easier to customize.

3、SpringBoot

Springboot is a microblogging service framework, continued the core idea of IOC and AOP spring framework simplifies the development and deployment of applications. Spring Boot Spring applications to simplify the creation, operation, testing, deployment and appears, it can be done using focus on the development of Spring applications, without too much attention XML configuration.
Second, the principle and structure
1, Spring of principle and composition

Spring Framework is a layered architecture, consisting of seven well-defined modules. Spring core module built on top of the container, the container defines a core to create, configure and manage the bean embodiment, the composition of each of the modules (or components) may be present Spring frame alone, or in combination with other implement one or more modules, Spring to simplify our development work, a series of functional modules encapsulate components of the box, comprising: Spring JDBC, Spring MVC, Spring Security, Spring AOP, Spring ORM, Spring Test like. As shown below:spring underlying principle resolved

FIG simplified understanding:spring underlying principle resolved

2, SpringMVC principle and composition

It can be seen from the figure above: Spring MVC subsequent products belonging SpringFrameWork has been fused Spring Web Flow inside. Spring provides a framework for building Web applications full-featured MVC module. Use Spring pluggable MVC architecture, you can choose whether to use the built-in Spring Web framework can also be a Web framework such as Struts. Designed to develop technical framework for the MVC pattern SpringWeb project implementation. The principle is as follows:spring underlying principle resolved

MVC: Model (model), VIew (view), Controller (Controller); we touch and learn javaWeb MVC developers know this kind of architecture, such as the early Sturts1, Sturts2 and so on from the beginning.
3, principles and characteristics of SpringBoot

spring boot is basically a spring of development, it removes the desired application set spring XML configuration is faster and more efficient development ecosystems paved the way.

sping boot some of the features:

1, Spring Boot provides extremely fast and simplified operation, so Spring developers get started quickly.

2, Spring Boot Spring provides a default configuration to run.
3, Spring Boot offers a lot of non-functional characteristics common Spring projects, such as: embedded Serve, Security, statistics, health check, external configuration, and so on.
Composition and structure shown below:spring underlying principle resolved

As it can be seen from the figure Spring SpringBoot comprising a core (IOC) and (the AOP); and encapsulates some extensions, such as Stater:

spring underlying principle resolved
Third, the difference between summary
1. simply understood as: Spring contains SpringMVC, and SpringBoot also contains the Spring or is done on the basis of an extension of the Spring.

spring underlying principle resolved

Well humble opinion on some of the spring's stop here, after a time the right to continue to chatter. Public number: Java Architecture Jun

Guess you like

Origin blog.51cto.com/14274308/2457668