在寻找动态加载配置的方法, 找到以下内容, 记录下
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