使用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>


版权声明:本文为qianxiaopeng原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。