在寻找动态加载配置的方法, 找到以下内容, 记录下
DiscoveryClient Route Definition Locator uses service discovery client to define route information:
It can use the service discovery client interface DiscoveryClient to obtain service registration information from the service attention center and then configure the corresponding routes. Note that you need to add the following configuration in the configuration to enable this function:
spring.cloud.gateway.discovery.locator.enabled=true

博客记录了寻找动态加载配置方法的相关内容。提到DiscoveryClient Route Definition Locator可利用服务发现客户端定义路由信息,能通过服务发现客户端接口从服务中心获取服务注册信息并配置对应路由,还需在配置中添加特定配置以启用该功能。
1936

被折叠的 条评论
为什么被折叠?



