Preface

Spring Frame is like a family , There are many derivatives, such as boot、security、jpa wait . But their foundation is Spring Of ioc and aop ioc Provides containers for dependency injection aop , Solve cross section oriented programming , Then on the basis of these two, we realize the advanced functions of other extended products .

Spring MVC Is based on Servlet One of the MVC frame Main solution WEB Development issues , because Spring The configuration of is very complex , Various XML、 JavaConfig、hin It's cumbersome to deal with . So in order to simplify the use of developers , Thus creatively introducing Spring boot, Convention over configuration , To simplify the spring Configuration process of .

To put it more simply :Spring First use “ Factory mode ”(DI) and “ The proxy pattern ”(AOP) Decouple application components . I think it's very useful , So I made a MVC frame ( Some use Spring Decoupled components ), Development with web application ( SpringMVC ). And then I found that every time I develop, I write a lot of template code , To simplify the workflow , So we developed some “ Lazy integration package ”(starter), This set is Spring Boot.

Spring MVC The function of

Spring MVC Provides a slightly coupled way to develop web application .

Spring MVC yes Spring A module of , A formula web frame . adopt Dispatcher Servlet, ModelAndView and View Resolver, Development web Applications become easy . The problem area to be solved is website application or service development ——URL route 、Session、 template engine 、 static state Web Resources and so on .

Spring Boot The function of

Spring Boot Automatic configuration is realized , Reduce the complexity of project construction .

as everyone knows Spring The framework needs a lot of configuration ,Spring Boot Introduce the concept of automatic configuration , Make project setup easy .Spring Boot It does not provide Spring The core features of the framework and its extended functions , Just for fast 、 Agile development of a new generation based on Spring Framework applications .

in other words , It's not a substitute for Spring Solutions for , But and Spring Frame tight for lifting Spring Tools for developer experience . At the same time, it integrates a large number of commonly used third-party library configurations ( for example Jackson, JDBC, Mongo, Redis, Mail wait ),Spring Boot These third-party libraries in the application can be used out of the box with almost zero configuration (out-of-the-box), Most of Spring Boot Applications require very little configuration code , Developers can focus more on business logic .

Spring Boot It's just the bearer , To help you simplify the project building process . If the load is WEB project , Use Spring MVC As MVC frame , So the workflow is exactly the same as what you described above , Because this part of the work is Spring MVC Do it instead of Spring Boot.

For users , Switch to a Spring Boot in the future , The project initialization method has changed , The configuration file has changed , In addition, it doesn't need to be installed separately Tomcat This kind of container server ,maven play jar It's just a website , But there is no change between your core business logic implementation and business process implementation .

therefore , To sum up in the most concise language is :

Spring It's a “ engine ”;

Spring MVC Is based on Spring One of the MVC frame ;

Spring Boot Is based on Spring4 The condition of registration of a set of rapid development integration package .

Spring Boot And Spring MVC What's the difference

  1. Spring Boot And Spring MVC Integration startup process source code analysis

    Open source project recommendation Pepper Metrics It's an open source tool developed by me and my colleagues (https://github.com/zrbcool/pepper-metrics), By collecting jedis/mybatis/ht ...

  2. spring boot And spring mvc What's the difference ?

    Spring Frame is like a family , There are many derivatives, such as boot.security.jpa wait . But their foundation is Spring Of ioc and aop ioc Provides containers for dependency injection aop , Solved the problem of facing the cross section ...

  3. spring boot And spring mvc The difference between

    Spring Frame is like a family , There are many derivatives, such as boot.security.jpa wait . But their foundation is Spring Of ioc and aop ioc Provides containers for dependency injection aop , Solved the problem of facing the cross section ...

  4. Spring、Spring Boot、Spring Frame、Spring MVC The difference between

    Spring Framework is like a manufacturer , There are a lot of products , Such as Spring Boot.Spring Frame.Spring Cloud wait . Spring Boot For fast . convenient . Simply build a Spring project . ...

  5. Spring Boot 2.X( Four ):Spring Boot Customize Web MVC To configure

    0. Get ready Spring Boot It not only provides a fairly simple automatic configuration function , And open a very free and flexible configuration class .Spring MVC For us WebMvcConfigurationSupport Class and one ...

  6. Spring Boot And Spring The difference between

    from :https://blog.csdn.net/sinat_36246371/article/details/72902406 Spring Boot It's only in recent years that the fire started , So with it in the end Spring ...

  7. Spring Boot -- know Spring Boot

    We've learned that before Srping MVC frame , We need to configure web.xml.spring mvc The configuration file ,tomcat, Does it feel that the configuration is complicated . Let's try it today Spring Boot,Sprin ...

  8. be based on Spring Boot、Spring Cloud、Docker Micro service system architecture practice

    Due to the recent business needs of the company , Need to build based on Spring Cloud Microservice system of . Visit the major search engines , It is found that there are very few domestic data , It is no wonder that , At home Dubbo Orthodoxy rules the world . however , A technology always has its bottleneck ,Dubbo There is also a shortage of it ...

  9. be based on Spring Boot and Spring Cloud Realize microservice architecture learning

    Reprinted from :http://blog.csdn.net/enweitech/article/details/52582918 For weeks Spring Relevant framework of books and official demo, It's time to start summarizing the sense of learning ...

  10. be based on Spring Boot and Spring Cloud Realize microservice architecture learning -- turn

    Original address :http://blog.csdn.net/enweitech/article/details/52582918 For weeks spring Relevant framework of books and official demo, It's time to start summarizing the learning in the middle ...

Random recommendation

  1. NC Solve the problem of memory overflow in boot environment

    java heap space out of memory The solution is as follows : stay eclipse in ,window-->preferences-->Java-->Installed JREs Choose JRE Click on ...

  2. finally keyword

    final: Disable polymorphic switches ~ Modifying variables : Variables cannot be changed to modify classes : Class cannot be inherited to modify methods : Method cannot be overridden finally: The last statement block used in exception handling is executed regardless of whether an exception is generated ~~~ Java Code public ...

  3. 《Java Automatic packing and unpacking function in .》

    //Java Automatic packing and unpacking function in . class AutoboxingUnboxing { public static void main(String[] args) { // Just put a basic type variable ...

  4. Beginners Hibernate Persistence

    hibernate Three persistent object states :( Persistent object :Persistent Object=POJO + hbm mapping ) 1. Instantaneous state ( A temporary or free state ):PO Object just created ( namely new) Start to enter the transient state , Right now ...

  5. install "MySQLdb" striking one snag after another .

    Learning courses on MOOCS "Python operation MySQL database ", install "MySQLdb" We have problems . First, find the wrong place : Baidu search "Mysql for Python& ...

  6. 【 turn 】 belt checkbox Of ListView Realization ( Two )—— Customize Checkable Control implementation method

    Original website :http://blog.csdn.net/harvic880925/article/details/40475367 Preface : The previous article showed you the traditional Listview Writing , But sometimes we ...

  7. python Iterators and generators and yield

    One . iterator (itertor) 1. Can the iteration : stay Python If an object has __iter__() Method or __getitem__() Method , This object is said to be iterative (iterable). among __iter__( ...

  8. 【Https】Spring RestTemplete Support Https Security request

    Implementation steps Step1: Customize ClientHttpRequestFactory package com.example.demo.https; import org.springframework.h ...

  9. God's article 1: last year (2011) What did you do in a year ? -vivo God Man

    Comment on : From Douban vivo God Man , I didn't know that there was No. 1 bully , I think this person is knowledgeable . Have a sense of justice , There is an article about the evolution of China's modern economy , I feel deeply about it . Because of time , I didn't read through , I'll finish it when I have time ( I have a brief look at the miscellaneous records of Weibo ...

  10. ASP.net in aspx And cs Function intermodulation

    Reprinted from :http://www.2cto.com/kf/201209/152898.html aspx The front desk script function , call aspx.cs Middle and background functions : aspx: <script type= ...