79208407

Date: 2024-11-20 17:46:31
Score: 2.5
Natty:
Report link

If your spring-cloud-gateway offers its own REST API in addition to routing to other backend services, you don’t need to provide routes in the RouteLocatorBuilder for those.

Just expose the API with a @RestController or with router functions (see https://www.baeldung.com/spring-5-functional-web)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @RestController
  • Low reputation (0.5):
Posted by: Sandra Markerud