spring and springMvc:
1. spring is a one-stop lightweight Java development framework, with the core of which is control inversion (IOC) and tangent-oriented (AOP). It provides a variety of configuration solutions for the development of WEB layer (springMvc), business layer (Ioc), persistence layer (jdbcTemplate), etc.;
2. springMvc is an MVC framework based on spring. It mainly deals with path mapping and view rendering of web development. It is part of the WEB layer development in spring framework;
springMvc and springBoot:
1. springMvc belongs to an enterprise WEB development MVC framework, covering areas including front-end view development, file configuration, back-end interface logic development, etc. XML, config and other configurations are relatively cumbersome and complex;
2. Compared with the springMvc framework, the springBoot framework focuses more on developing microservice backend interfaces, not developing front-end views, and follows the default over configuration, simplifying the plug-in configuration process and does not require configuring xml. Compared with springmvc, it greatly simplifies the configuration process;
springBoot and springCloud:
1. Spring boot uses the concept that default is greater than configuration, integrates multiple spring plug-ins for rapid development, and automatically filters unnecessary plug-ins that do not require configuration, simplifies the project's development and configuration process, and cancels the XML configuration to a certain extent. It is a set of fast configuration development scaffolding, which can quickly develop a single microservice;
2. Most of the functional plug-ins of spring cloud are implemented based on springBoot. springCloud focuses on global microservice integration and management, and integrates and manages multiple springBoot single microservices; springCloud relies on springBoot development, while springBoot can be developed independently;
Summarize:
1. Spring framework is like a family, there are many derivative products such as boot, security, jpa, etc. But their foundations are Spring's ioc, aop, etc. Ioc provides dependency injection containers, aop solves cross-sectional programming, and then implements advanced functions of other extended products based on both;
2. springMvc mainly solves the problems of WEB development.It is an MVC framework based on Servlets. Through XML configuration, it uniformly develops front-end views and back-end logic;
3. Because Spring configuration is very complex, various XML, JavaConfig, and servlets are complicated to handle. In order to simplify the use of developers, the springBoot framework was creatively launched, which is better than configuration by default and simplifies the configuration process of springMvc. But what is different from springMvc is,springBoot focuses on the development of single-unit microservice interfaces and decoupling from front-endAlthough springBoot can also be developed together in springMvc front and backend, this is a bit inconsistent with the original intention of the springBoot framework;
4. For the springCloud framework, like springBoot, it focuses on the development of microservices, butspringCloud focuses more on the integration and management of global microservice interfaces, equivalent to managing single-unit microservices for multiple springBoot frameworks;