关于spring-boot-denpendencies
在SpingBoot中所有的依赖管理,都是由spring-boot-dependencies
来做的,在这个模块中管理了常用的依赖以及版本,因此我们的SpringBoot中引入依赖时,不需要指定版本号。
具体管理了哪些依赖,可以通过下面的链接查看
这个模块在Maven中也是单独作为一个依赖存在的,因此我们可以直接使用这个模块
如果不采用继承spring-boot-starter-parent
模块
采用下面这种方式也能实现创建一个SpringBoot项目
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.5.4.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>