Chapter 3. Controlling your configuration with Spring Cloud configuration server

This chapter covers

  • Separating service configuration from service code
  • Configuring a Spring Cloud configuration server
  • Integrating a Spring Boot microservice
  • Encrypting sensitive properties

At one point or another, a developer will be forced to separate configuration information from their code. After all, it has been drilled into their heads since school that they shouldn’t hard-code values into the application code. Many developers will use a constants class file in their application to help centralize all their configuration in one place. Application configuration data written directly into the code is often problematic because every time a change to the configuration ...

Get Spring Microservices in Action 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.