Spring-cloud-gateway: How can I load routes from mongodb?

Created on 15 Jul 2018  路  2Comments  路  Source: spring-cloud/spring-cloud-gateway

How can I load routes dynamically from a mongodb instance using the reactive datastore in spring cloud gateway? Any pointers appreciated.

documentation question

Most helpful comment

1 . implement RouteDefinitionRepository
2 . publish RefreshRoutesEvent to refresh routing;

All 2 comments

1 . implement RouteDefinitionRepository
2 . publish RefreshRoutesEvent to refresh routing;

Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue.

Was this page helpful?
0 / 5 - 0 ratings