<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.6.RELEASE</version>
    </parent>

1.父项目

点进去看

springboot-003-pom

 

 

 它会依赖这个,再点进去
springboot-003-pom

 

 

 会看到spring-boot-dependencies里默认控制了很多版本,这是springboot版本仲裁中心

springboot-003-pom

 

 

 

2.导入的依赖

springboot还要这个依赖:

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>

 

  点进去sprint-boot-starter-web能看到很多web的dependency

springboot-003-pom

spring-boot-starter:spring-boot场景启动器;帮我们导入了web模块正常运行的所依赖的组件


相关文章:

  • 2021-12-14
  • 2022-02-22
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-06-02
相关资源
相似解决方案