使用spring gateway动态配置路由,发现nacos保存后,查看日志有监听并保存到RouteDefinitionWriter,但是没有生效,需要重启才能生效。
解决方案
需要开启动态路由配置
spring:
cloud:
gateway:
discovery:
locator:
enabled: true
lower-case-service-id: true
使用spring gateway动态配置路由,发现nacos保存后,查看日志有监听并保存到RouteDefinitionWriter,但是没有生效,需要重启才能生效。
需要开启动态路由配置
spring:
cloud:
gateway:
discovery:
locator:
enabled: true
lower-case-service-id: true