Spring boot pom.xml中依赖项管理标记的用途是什么?
有人能解释一下这个依赖项在依赖项管理下做了什么,以及在添加它之后为什么我们不需要提及我们的依赖项的版本吗Spring boot pom.xml中依赖项管理标记的用途是什么?,spring-boot,maven,dependencies,pom.xml,dependency-management,Spring Boot,Maven,Dependencies,Pom.xml,Dependency Management,有人能解释一下这个依赖项在依赖项管理下做了什么,以及在添加它之后为什么我们不需要提及我们的依赖项的版本吗 <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId&
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
</dependencies>
org.springframework.cloud
spring云依赖关系
${spring cloud.version}
聚甲醛
进口
org.springframework.cloud
spring cloud starter netflix eureka服务器
- dependencyManagement使它们可用,但您需要在希望加载到的每个子模块中导入它们。用作版本控制,并避免在每个模块或子项目中加载所有依赖项的臃肿项目
- 依赖项为继承它们的每个模块或子模块加载它们
- dependencyManagement使它们可用,但您需要在希望加载到的每个子模块中导入它们。用作版本控制,并避免在每个模块或子项目中加载所有依赖项的臃肿项目
- 依赖项为继承它们的每个模块或子模块加载它们