Difference between Spring and Spring Boot

后端 未结 6 1424
走了就别回头了
走了就别回头了 2020-12-14 01:39

There are many people who advised me to use Spring Boot instead of Spring to develop REST web services. I want to know what exactly the difference between the two is?

6条回答
  •  庸人自扰
    2020-12-14 02:15

    Basically, Spring Boot is an opinionated instance of a Spring application.

    Spring Boot is a rapid application development platform. It uses various components of Spring, but has additional niceties like the ability to package your application as a runnable jar, which includes an embedded tomcat (or jetty) server. Additionally, Spring Boot contains a LOT of auto-configuration for you (the opinionated part), where it will pick and choose what to create based on what classes/beans are available or missing.

    I would echo their sentiment that if you are going to use Spring I can't think of any reasons to do it without Spring Boot.

提交回复
热议问题