sentinel配置

1.引入jar

        <!--sentinel依赖-->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
        </dependency>

2.配置文件

    sentinel:
      transpost:
        dashboard: localhost:8080

3.官网下载sentinel 包使用java -jar命令启动,通过配置启动参数来修改端口号等

 

posted @ 2022-05-16 14:19  疯靡  阅读(110)  评论(0)    收藏  举报