提交 d93ad9bb 编写于 作者: Q qinyingjie

fix:提交

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