1. gateway:接入 nacos 配置中心,可支持动态路由

2. system-server:接入 nacos 配中心
This commit is contained in:
YunaiV
2022-06-04 23:50:46 +08:00
parent 93f4334eb6
commit 78c200ca61
13 changed files with 104 additions and 39 deletions

View File

@@ -0,0 +1,10 @@
/**
* 在 Nacos 配置发生变化时Spring Cloud Alibaba Nacos Config 内置的监听器,会监听到配置刷新,最终触发 Gateway 的路由信息刷新。
*
* 参见 https://www.iocoder.cn/Spring-Cloud/Spring-Cloud-Gateway/?yudao 博客的「6. 基于配置中心 Nacos 实现动态路由」小节
*
* 使用方式:在 Nacos 修改 DataId 为 gateway-server.yaml 的配置,修改 spring.cloud.gateway.routes 配置项
*
* @author 芋道源码
*/
package cn.iocoder.yudao.gateway.route.dynamic;

View File

@@ -0,0 +1,4 @@
/**
* 占位符
*/
package cn.iocoder.yudao.gateway.route;