From 1ecf526b5cfb85b06d181281bd76623cc6f37a34 Mon Sep 17 00:00:00 2001 From: yangying <2505594512@qq.com> Date: Tue, 15 Dec 2020 15:18:06 +0800 Subject: [PATCH] =?UTF-8?q?sentinel=E7=A4=BA=E4=BE=8B=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0sentinel=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=AE=9E=E7=8E=B0s?= =?UTF-8?q?entinel=E7=A4=BA=E4=BE=8B=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E8=BF=90=E8=A1=8C=E8=AF=B4=E6=98=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sentinel-example/sentinel-feign-example/readme-zh.md | 4 ++++ .../src/main/resources/application.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/spring-cloud-alibaba-examples/sentinel-example/sentinel-feign-example/readme-zh.md b/spring-cloud-alibaba-examples/sentinel-example/sentinel-feign-example/readme-zh.md index 542d9ef78..06bc694e7 100644 --- a/spring-cloud-alibaba-examples/sentinel-example/sentinel-feign-example/readme-zh.md +++ b/spring-cloud-alibaba-examples/sentinel-example/sentinel-feign-example/readme-zh.md @@ -114,6 +114,8 @@ public class EchoController { - 启动nacos 注册中心 +- 启动sentinel + - 启动服务提供方: 1. IDE直接启动:找到主类 `ProviderApplication`,执行 main 方法启动应用。 @@ -123,3 +125,5 @@ public class EchoController { 1. IDE直接启动:找到主类 `ConsumerApplication`,执行 main 方法启动应用。 2. 打包编译后启动:首先执行 `mvn clean package` 将工程编译打包,然后执行 `java -jar sentinel-feign-consumer-example.jar`启动应用。 + +- 启动之后,Sentinel Dashboard可能看不见service-consumer服务的详细信息,多请求几次接口即可。 diff --git a/spring-cloud-alibaba-examples/sentinel-example/sentinel-feign-example/sentinel-feign-consumer-example/src/main/resources/application.yml b/spring-cloud-alibaba-examples/sentinel-example/sentinel-feign-example/sentinel-feign-consumer-example/src/main/resources/application.yml index 219c38d02..c981dca1e 100644 --- a/spring-cloud-alibaba-examples/sentinel-example/sentinel-feign-example/sentinel-feign-consumer-example/src/main/resources/application.yml +++ b/spring-cloud-alibaba-examples/sentinel-example/sentinel-feign-example/sentinel-feign-consumer-example/src/main/resources/application.yml @@ -8,6 +8,9 @@ spring: nacos: discovery: server-addr: 127.0.0.1:8848 + sentinel: + transport: + dashboard: 127.0.0.1:8081 feign: sentinel: