在order-sentinel模块里添加依赖
com.alibaba.csp sentinel-datasource-nacos
server:
port: 8088
spring:
application:
name: order-sentinel
cloud:
sentinel:
transport:
dashboard: 127.0.0.1:8080
web-context-unify: false #默认将调用链路收敛
datasource:
flow-rule: # 自定义名称
nacos:
server-addr: 127.0.0.1:8847
username: nacos
password: nacos
dataId: order-sentinel-flow-rule
rule-type: flow



