spring initializr: spring-boot-starter vs spring-boot-starter-web

后端 未结 3 2544
一生所求
一生所求 2021-02-20 19:01

I am trying to develop a sample spring boot based application in IntellIJ. So I used spring Initialzr approach, and made default selections during the setup. The pom.xml I ended

3条回答
  •  伪装坚强ぢ
    2021-02-20 19:51

    spring-boot-starter provides the basic development and run time infrastructure for your application along with core spring features. If you want web capabilities such as spring-mvc to your project you need to use spring-boot-starter-web. However if you use spring-boot-starter-web you do not need to to explicitly mention spring-boot-starter.

提交回复
热议问题