提交 d93ad9bb 编写于 作者: Q qinyingjie

fix:提交

上级 7797b2bf
......@@ -8,11 +8,6 @@ spring:
password: 716288qwe
application:
name: goods-service #服务名称
zipkin:
base-url: http://localhost:9411 #zipkin地址 默认值就是0.1,代表收集10%的请求追踪信息。
sleuth:
sampler:
percentage: 0.1 #收集百分比
#服务提供者
eureka:
......
......@@ -8,11 +8,6 @@ spring:
password: 716288qwe
application:
name: goods-service #服务名
zipkin:
base-url: http://localhost:9411 #zipkin地址 默认值就是0.1,代表收集10%的请求追踪信息。
sleuth:
sampler:
percentage: 0.1 #收集百分比
#服务提供者
......
......@@ -8,11 +8,6 @@ spring:
password: 716288qwe
application:
name: goods-service #服务名称
zipkin:
base-url: http://localhost:9411 #zipkin地址 默认值就是0.1,代表收集10%的请求追踪信息。
sleuth:
sampler:
percentage: 0.1 #收集百分比
#服务提供者
eureka:
......
......@@ -67,6 +67,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
</dependencies>
......
......@@ -11,6 +11,14 @@ spring:
name: application-goods9100 #获取的文件名
profile: goods9100 #文件后缀
uri: http://localhost:7001 #配置中心服务端地址
zipkin:
base-url: http://localhost:9411 #zipkin地址 默认值就是0.1,代表收集10%的请求追踪信息。
discovery-client-enabled: false
sender:
type: web
sleuth:
sampler:
percentage: 0.1 #收集百分比
eureka:
client:
service-url:
......
......@@ -68,6 +68,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -11,6 +11,14 @@ spring:
name: application-goods9200 #获取的文件名
profile: goods9200 #文件后缀
uri: http://localhost:7001 #配置中心服务端地址
zipkin:
base-url: http://localhost:9411 #zipkin地址 默认值就是0.1,代表收集10%的请求追踪信息。
discovery-client-enabled: false
sender:
type: web
sleuth:
sampler:
percentage: 0.1 #收集百分比
eureka:
client:
service-url:
......
......@@ -68,6 +68,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -11,6 +11,14 @@ spring:
name: application-goods9300 #获取的文件名
profile: goods9300 #文件后缀
uri: http://localhost:7001 #配置中心服务端地址
zipkin:
base-url: http://localhost:9411 #zipkin地址 默认值就是0.1,代表收集10%的请求追踪信息。
discovery-client-enabled: false
sender:
type: web
sleuth:
sampler:
percentage: 0.1 #收集百分比
#注册中心配置
eureka:
client:
......
......@@ -49,6 +49,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -11,6 +11,14 @@ spring:
name: application-portal8080 #获取的文件名
profile: portal8080 #文件后缀
uri: http://localhost:7001 #配置中心服务端地址
zipkin:
base-url: http://localhost:9411 #zipkin地址 默认值就是0.1,代表收集10%的请求追踪信息。
discovery-client-enabled: false
sender:
type: web
sleuth:
sampler:
percentage: 0.1 #收集百分比
eureka:
client:
service-url:
......
......@@ -51,12 +51,9 @@
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
......
......@@ -10,11 +10,11 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
/**
*
* http://localhost:8081/portal/hystrix/1
*@version : 2.2.0
*@author : qinyingjie
*@date : 2023/1/14 16:07
* http://localhost:8081/portal/hystrix/1
*
* @author : qinyingjie
* @version : 2.2.0
* @date : 2023/1/14 16:07
*/
@EnableFeignClients
@EnableHystrix
......
......@@ -10,6 +10,14 @@ spring:
name: application-portal8081 #获取的文件名
profile: portal8081 #文件后缀
uri: http://localhost:7001 #配置中心服务端地址
zipkin:
base-url: http://localhost:9411 #zipkin地址 默认值就是0.1,代表收集10%的请求追踪信息。
discovery-client-enabled: false
sender:
type: web
sleuth:
sampler:
percentage: 0.1 #收集百分比
eureka:
client:
service-url:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册