使用Spring Cloud Sleuth在应用中进行日志跟踪

在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>

猜你喜欢

转载自blog.csdn.net/qianxiaopeng/article/details/82150648