-
A simple Spring Cloud Gateway application that routes requests to the Postman Echo service. It automatically appends the
methodof the request to the Postman Echo URLhttps://postman-echo.com/{method}. -
Supports per request timeout by using
X-TIMEOUT-MILLISheader. If the header is not present, the default timeout is used. -
Converts
SocketTimeoutExceptionorHttpConnectTimeoutExceptionintoHttpStatus.GATEWAY_TIMEOUTresponse. -
Sets a request header
x-method -
Sets a response header
x-method
Use Test page to test the application.
For further reference, please consider the following sections:
- spring-cloud-gateway-mvc-sample
- How to Include Spring Cloud Gateway Server MVC
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
These additional references should also help you: