Search code examples
spring-bootmicroservicesnetflix-eurekanetflix-zuulapi-gateway

How to call external service (Non MSA) from Api gateway (Zuul) in spring boot application


In my Spring boot micro service application,I am using Zuul proxy as edge service in my API Gateway. I need to call external service which is not registered in eureka server(Non Micro Service Architecture). How Can I call that external service from my api gateway. (Thanks in advance)


Solution

  • In your application.properties file you configure as below:

    zuul.routes.external.path /external/**
    zuul.routes.external.url http://urltoexternalservice.com/external