Spring Cloud Zuul: how to add route without restart

萝らか妹 提交于 2019-12-10 17:13:14

问题


I am writing microservices with Spring Cloud.

I'm also using Zuul as the API Gateway which routes some URLs to destination services which are not registered into Eureka.

When a new route needed to be added to Zuul, we often edit the application.yml file and then restart the Zuul server.

I was wondering is there a way to add new route into Zuul without restarting the Zuul server?

I found this link useful but it only works for services registed in Erueka.

来源:https://stackoverflow.com/questions/43042463/spring-cloud-zuul-how-to-add-route-without-restart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!