A brief introduction to spring springMvc spring-boot spring-cloud

foreword

Recently, the company's project will use spring-boot and spring-cloud as new frameworks to replace the original spring springMvc. Spring-boot and spring-cloud have not been used yet. First, I will explain my self-understanding, and then I will talk about my feelings in detail later.

what is spring

The definition of spring has been explained clearly and clearly from both the official and the market. I briefly define it as a lightweight inversion of control (IoC) and aspect-oriented (AOP) container , Java development framework, as for inversion of control, aspect-oriented, lightweight, containers, etc. Baidu, many big The cow explained it very clearly

what is springMvc

Here I will separate the nouns. Spring and mvc can better explain what springMvc is. MVC is a very common pattern developed for modern web projects. In short, C (controller) will V (view, user client) Terminal) and M (module, business) are separated to form MVC. The common development frameworks of mvc mode in the industry include Struts1, Struts2 and so on. Spring is an open source framework for professional development of web projects, and springMvc is an internal module link, which also adopts the mvc design pattern. So when using spring to develop web projects, MVC as the core link can use struts1/struts2/springMVc

what is spring-boot

My understanding is that there are too many products in the spring series family, so when using the spring integrated basic framework as the project structure, most junior staff spend a lot of time building the project and may not be able to understand it. spring-boot was born to solve the pain point of developers. To put it bluntly, it automatically encapsulates the previous manual configuration process and provides default configuration. The characteristics of the Daniel summary are:

  1. Simple and easy to use, both beginners and Daniel can easily get started, and the annotations will provide convenience for users;
  2. Spring boot has well encapsulated and integrated third-party technologies and provided a large number of third-party interfaces;
  3. Can be automatically configured by dependencies, no configuration files such as XML are required
  4. It also provides features such as security, let's ignore it for now.

    Now the boot summary is that you can start quickly, build the project quickly, save a lot of time and energy in the configuration file ring, fool you into the project door, and write business logic. Now it is integrated with many frameworks to configure according to the specifications and write handwritten code in minutes

what is spring-cloud

Microservices are a hot topic in the current architecture field. If you want to know what spring-cloud is, please first figure out what microservices are. spring-colud is a cloud distributed architecture solution. Based on spring boot, it can become a microservice in spring cloud with less configuration in spring boot. It's a bit high-sounding and I haven't used it, but it is simply understood as: spring cloud provides some commonly used distributed components, all of which are application-oriented, just like spring mvc.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325662734&siteId=291194637