-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Missing redis-route-definition-repository property metadata #3299
Comments
@spencergibb When will the fixed version be released? I can't load routes using redis now. |
The property still works, just doesn't have auto-completion metadata. Watch https://github.com/spring-cloud/spring-cloud-release/milestones or https://calendar.spring.io for release dates |
I set this property and configured the redis connection, but the route still cannot be queried in redis. Am I missing other configurations? |
I don't know. You've provided only dependencies. I'd need an error or logs or better provide a complete, minimal, verifiable sample (something that we can unzip attached to this issue or git clone, build, and deploy) that reproduces the problem. |
Thanks for your answer. This is my minimal sample, route is not loaded into redis after the application is started. Did I do something incorrectly? |
Can you provide the redis command you use to insert a route? And the url you try for that route? |
I thought that if spring.cloud.gateway.redis-route-definition-repository.enabled=true was configured, the spring-cloud-gateway application would automatically store the routing configuration in yml into redis, but that's not actually the case, is it? |
No. It reads route information from redis. |
I understand, we actually need to manually use redis to insert routes. Is this just automatically read? |
Yes, that is correct. |
Thank you very much for your help. |
You're welcome |
We recently used spring-cloud-gateway for dynamic routing. I may be more active in the community, so please don't find me annoying, haha. |
Welcome! |
This is my project pom.xml. but in application.yml
spring.cloud.gateway.redis-route-definition-repository.enabled
not found. so i'm confused.The text was updated successfully, but these errors were encountered: