package com.hzz.hzzgateway;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.event.RefreshRoutesEvent;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.route.Route;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ConfigurableApplicationConte
nacos的gateway网关中改变路由配置之后刷新的方法
最新推荐文章于 2023-01-01 16:29:03 发布
本文介绍了在使用Nacos作为配置中心时,如何实现在Gateway网关上动态更新和刷新路由配置的方法,确保更改立即生效。
摘要由CSDN通过智能技术生成