引入依赖
:::tips 在每个微服务工程中引入Sentinel的依赖 :::
<!--Sentinel依赖--><dependency><groupId>com.alibaba.cloud</groupId><artifactId>spring-cloud-starter-alibaba-sentinel</artifactId></dependency>
添加配置
:::tips 在每个微服务工程的配置文件中添加Sentinel的连接信息 :::
spring:cloud:sentinel:transport:#配置Sentinel服务的地址dashboard: localhost:8090
访问API
:::tips
进入浏览器,访问这个微服务的任意API,进入Sentinel中(http://localhost:8090)就可以看到访问的API
:::
