springboot-pom.xml-spring-boot-s

2020-02-29  本文已影响0人  桑鱼nicoo

POM文件

父项目

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.4.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

SpringbBoot的仲裁中心 <name>Spring Boot Dependencies</name> ,它来管理SpringbBoot的所有依赖版本,所以导入依赖的时候可以不写版本,在dependencies里面管理的依赖自然会声明版本号

启动器

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

springboot将所有的功能场景都抽取出来,做成一个个的starters(启动器),只需要在项目里面引入这些starter相关场景的所有依赖都会导入进来。要用什么功能就导入什么场景的启动器

上一篇 下一篇

猜你喜欢

热点阅读