1.动态网关:gateway+nacos
监听nacos的网关配置文件实现动态网关
2.sentinel:
添加登录认证,添加server.servlet.context-path,改造sentinel-transport-simple-http,规则配置保存在nacos上,改为前后端分离
3.skywalking
修改登录认证,改为前后端分离
4.nacos
修改登录认证,改为前后端分离
5.接入应用
自己实现automatic-registration-data-source用于自动监听nacos配置流控降级等规则。
配置示例:
server:
port: 6789
servlet:
context-path: /pro
spring:
profiles:
active: develop
application:
name: provider
cloud:
sentinel:
transport:
dashboard: localhost:80
nacos:
config:
server-addr: localhost:80
file-extension: yaml
refreshable-dataids: provider-develop.yaml
discovery:
server-addr: localhost:80
#在nacos上配置
#nacos: