This project provides a library for building an API Gateway on top of Spring WebFlux. Spring Cloud Gateway aims to provide a simple, yet effective way to route to APIs and provide cross cutting concerns to them such as: security, monitoring/metrics, and resiliency. (Official Website)
When the request path matches the route predicate rule, forward the request to the target path of the route.
spring.cloud.gateway.default-filters: Default filters that apply to all routes (DefaultFilter) spring.cloud.gateway.routes.id: Id of the route spring.cloud.gateway.routes.uri: Target path of the route
lb://service-name: Send the request based on the service name http://ip-address: Send the request based on the IP address spring.cloud.gateway.routes.predicates: Predicates for the specified route spring.cloud.gateway.routes.filters: Filters for the specified route
spring.cloud.gateway.routes.predicates.After: After a specified time spring.cloud.gateway.routes.predicates.Before: Before a specified time spring.cloud.gateway.routes.predicates.Between: Between two specified times spring.cloud.gateway.routes.predicates.Cookie: Match specified cookies spring.cloud.gateway.routes.predicates.Header: Match specified headers spring.cloud.gateway.routes.predicates.Host: Match specified request domains spring.cloud.gateway.routes.predicates.Method: Match specified request methods spring.cloud.gateway.routes.predicates.Path: Match specified request paths spring.cloud.gateway.routes.predicates.Query: Match specified request parameters spring.cloud.gateway.routes.predicates.RemoteAddr: Match specified request IP ranges spring.cloud.gateway.routes.predicates.Weight: Match specified groups and weights