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

后端 未结 3 2469
一生所求
一生所求 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:31

    spring-boot-starter-web contains the following dependencies:

    • spring-boot-starter
    • jackson
    • spring-core
    • spring-mvc
    • spring-boot-starter-tomcat

    Using IntelliJ, you can view the dependencies of your artifacts at the bottom of the project structure.

    Given that spring-boot-starter is a dependency of spring-boot-starter-web, it would be useless to have both. It wouldn't do any harm if you kept both either, just unnecessary.

提交回复
热议问题