springboot-003-pom

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

1.父项目

点进去看

 它会依赖这个,再点进去

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

扫描二维码关注公众号,回复: 10483463 查看本文章

2.导入的依赖

springboot还要这个依赖:

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

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

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


猜你喜欢

转载自www.cnblogs.com/dayanjing/p/12634317.html
003