New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zuul routes cannot be changed dynamically from "url" to "serviceId" #706
Comments
It worked when adding this code to a configuration class. The idea is to have the
|
Hi I followed your comment about ZuulProperites. Are you trying to say with the changes you mentioned in the comments the routes gets deleted dynamically? I tried with the following code but to no effect, by routes are not getting deleted dynamically. I do see the log after I deleted route2
Before:
After:
Code
Also I don't see |
@rohitghatol I have to remember what I did. Too many things happened since I tested. can you try to initialize
|
@aivans The above code worked for me! Thanks for sharing. |
@freedombird9 welcome |
@aivans can you offer a demo in github,my local app can't work |
APPLICATION FAILED TO START Description: Field zuulProperties in org.springframework.cloud.netflix.zuul.ZuulConfiguration required a single bean, but 2 were found: Action: Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed |
@Syy0n that had nothing to do with this issue |
Hi All, I used Zuul to implement gateway for single service is working fine. I want to update some parameter in zuul property dynamically. here is my application.properties .Please advice. Thanks zuul.routes.Myform.path=/MyApp/form/api/v1/{CountryCode}/forms/** |
@spencergibb Can we do this? Is this feature got implemented? |
The issue is still open so this feature has not been implemented |
Can you please share, How we need to configure the routes in spring cloud config to get update it in gateway dynamically? My requirement is, I want to add/update the routes dynamically using spring cloud config. (I have spring cloud config with JDBC backend and API Gateway with zuul) |
@ghoddg your question is different please open a separate issue, or post a question on StackOverflow, or reach out to us on Gitter. |
Use the workaround suggested by @aivans |
I noticed that it is possible to edit routes via Spring cloud Config (or by changing the yml directly) with the same type
url
, but it is not possible to change the route to point to a service VIPScenario:
url
The text was updated successfully, but these errors were encountered: