mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Merge pull request #1868 from yyaini112/master
sentinel示例,添加sentinel配置,实现sentinel示例功能,以及运行说明。
This commit is contained in:
commit
139b03e652
@ -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服务的详细信息,多请求几次接口即可。
|
||||
|
@ -8,6 +8,9 @@ spring:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
sentinel:
|
||||
transport:
|
||||
dashboard: 127.0.0.1:8081
|
||||
|
||||
feign:
|
||||
sentinel:
|
||||
|
Loading…
x
Reference in New Issue
Block a user