Skip to Content
Mastering Spring Cloud
book

Mastering Spring Cloud

by Piotr Mińkowski
April 2018
Intermediate to advanced content levelIntermediate to advanced
432 pages
10h 38m
English
Packt Publishing
Content preview from Mastering Spring Cloud

Ignoring registered services

Spring Cloud Zuul by default exposes all the services registered in Eureka server. If you would like to skip the automatic addition of every service, you have to set the zuul.ignored-services property with a pattern matched to all the ignored service names from a discovery server. How does it work in practice? Even if you do not provide any configuration with zuul.routes.* properties, Zuul would fetch the list of services from Eureka and automatically bind them to the path with the service name. For example, account-service would be available under the gateway address http://localhost:8080/account-service/**. Now, if you set the following configuration in  your application.yml file, it would ignore account-service ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781788475433Supplemental Content