在pom.xml加入以下配置即可
1. <dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
2.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
博客介绍了在pom.xml中添加Spring Cloud相关依赖的配置。包括添加spring-cloud-starter-sleuth依赖,以及在dependencyManagement中添加spring-cloud-dependencies依赖并指定版本为Brixton.RELEASE。
1317

被折叠的 条评论
为什么被折叠?



