编程知识 cdmana.com

What are the differences and connections among spring, spring MVC, springboot and spring cloud?

Brief introduction

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 ,

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 ;

 

.........

版权声明
本文为[Irving the procedural ape]所创,转载请带上原文链接,感谢

Scroll to Top