Spring It's a lightweight inversion of control (IoC) And face the facet (AOP) The container frame of .Spring Enables you to write Cleaner 、 More manageable 、 And easier to test code .
Spring MVC yes Spring A module of , One web frame . adopt Dispatcher Servlet, ModelAndView and View Resolver, Development web Applications become easy . Mainly for website application or service development ——URL route 、Session、 template engine 、 static state Web Resources and so on .
Spring Configure a complex , tedious , So we launched Spring boot, Convention over configuration , To simplify the spring Configuration process of .
Spring Cloud Built on Spring Boot above , It's a service governance framework that focuses on the whole .
Spring VS SpringMVC：
Spring It's a one-stop lightweight java Development framework , The core is inversion of control （IOC） And face the facet （AOP）, For development WEB layer (springMvc)、 The business layer (Ioc)、 Persistence layer (jdbcTemplate) And so on provide a variety of configuration solutions ;
SpringMVC yes Spring On top of that MVC frame , Main treatment web Developed path mapping and view rendering , Belong to Spring In the frame WEB Part of layer development ;
SpringMVC VS SpringBoot：
SpringMVC Belong to an enterprise WEB Developed MVC frame , Coverage includes front-end view development 、 File configuration 、 Background interface logic development, etc ,XML、config The configuration is relatively complicated ;
SpringBoot The frame is relative to SpringMVC Frame speaking , More focus on the development of micro service background interface , Don't develop front-end views ;
SpringBoot and SpringCloud：
SpringBoot The concept of default larger than configuration is used , Integrated with rapid development Spring Multiple plugins , At the same time, auto filter unnecessary plug-ins that do not need to be configured , Simplify the development and configuration process of the project , To some extent cancel xml To configure , It is a set of scaffolds for rapid configuration and development , Be able to quickly develop a single microservice ;
SpringCloud Most of the plug-ins are based on SpringBoot To achieve the ,SpringCloud Focus on global microservice integration and management , Will be multiple SpringBoot Integration and management of single microservices ;SpringCloud Depend on SpringBoot Development , and SpringBoot It can be developed independently ;
Sum up ：
Spring Is the core , Provides basic functions ;
Spring MVC Is based on Spring One of the MVC frame ;
Spring Boot To simplify Spring Configuration of the rapid development integration package ;
Spring Cloud Is built on Spring Boot The service governance framework above .
complete Java primary , Advanced corresponding learning routes and materials ！ Focus on java Development . Share java Basics 、 Knowledge of principle 、JavaWeb actual combat 、spring Family bucket 、 Design patterns 、 Distributed and interview materials 、 Open source project , Help developers grow ！
Welcome to WeChat official account. ： Code state Lord