Configuring Zuul properties

Let's configure Zuul properties in our application using the application.yml configuration file. These are the configurations we have created for our application configuration file:

spring:application:name: API-GATEWAYserver:port: 8080eureka:client:service-url:default-zone: ${EUREKA_URI:http://localhost:8761/eureka}instance:prefer-ip-address: truezuul:ignoredServices: '*'prefix: /apiroutes:account-service:path: /accounts/**serviceId: ACCOUNT-SERVICEcustomer-service:path: /customers/**serviceId: CUSTOMER-SERVICEhost:socket-timeout-millis: 30000

In the preceding application configuration file, first, we have configured the application name as API-GATEWAY and the server port with 8080 for the Edge Service application. ...

Get Mastering Spring Boot 2.0 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.