1、sentinel端引入依赖包
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-datasource-nacos</artifactId>
</dependency>
2、sentinel代码改造
后端
增加nacos代码,新建nacos包增加nacosconfig及util、各个规则的拉取监听、推送监听类
前端
identity.js 文件中FlowServiceV1改为FlowServiceV2
配置文件
增加配置
对应nacosConfig中的属性,在nacosService方法中使用