A simple introduction

Spring is a lightweight Inversion of Control (IoC) and AOP oriented container framework. Spring enables you to write cleaner, more manageable, and easier to test code.

Spring MVC is a module of Spring, a Web framework. Developing Web applications is easy with Dispatcher servlets, ModelandViews, and View Resolver. The main targets are Web application or service development – URL routing, sessions, template engines, static Web resources, and so on.

Spring configuration is complex and tedious, so Spring Boot is introduced. Convention is better than configuration, simplifying the configuration process of Spring.

Spring Cloud is a global service governance framework built on Spring Boot.

Spring VS for SpringMVC:

Spring is a one-stop lightweight Java development framework, the core is inversion of Control (IOC) and aspect oriented (AOP), for the development of the WEB layer (springMvc), business layer (IOC), persistence layer (jdbcTemplate) provide a variety of configuration solutions;

SpringMVC is an MVC framework based on Spring, mainly dealing with the path mapping and view rendering of Web development, which is a part of the Web layer development of Spring framework.

For SpringMVC VS SpringBoot:

SpringMVC belongs to an MVC framework of enterprise WEB development, covering front-end view development, file configuration, background interface logic development, etc., XML, Config configuration is relatively complicated;

Compared with SpringMVC framework, SpringBoot framework focuses more on the development of micro-service background interface and does not develop front-end view.

SpringBoot and SpringCloud:

SpringBoot uses the concept of default is greater than configuration, integrating the rapid development of Spring plug-ins, while automatically filtering redundant plug-ins that do not need to be configured, simplifying the development and configuration process of the project, to a certain extent, cancel XML configuration, is a set of fast configuration and development scaffolding, can quickly develop a single microservice;

Most function plug-ins of SpringCloud are realized based on SpringBoot. SpringCloud focuses on the integration and management of global microservices, integrating and managing multiple SpringBoot microservices. SpringCloud relies on SpringBoot development, which can be developed independently;

To sum up: Spring is the core and provides basic functionality; Spring MVC is an MVC framework based on Spring; Spring Boot is a quick development integration for simplifying Spring configuration; Spring Cloud is a service governance framework built on Top of Spring BootCopy the code