Built-in predicates and filters

Spring Cloud Gateway includes many built-in route predicates and gateway filter factories. Every route may be defined using configuration properties in the application.yml file or programmatically with the Fluent Java Routes API. The list of available predicate factories is provided in the following table. Multiple factories may be combined for a single route definition with a logical and relation. The collection of filters may be configured in the application.yml file under the spring.cloud.gateway.routes property for each defined route under the predicates property:

Name Description Example
After Route It takes a date-time parameter and matches requests that happen after it After=2017-11-20T...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.