Selecting the storage type of the configuration repository

As already described in Chapter 8, Introduction to Spring Cloud, in the Spring Cloud Config for centralized configuration section, the config server supports storing configuration files in a number of different backends, for example:

  • Git repository
  • Local filesystem
  • HashiCorp Vault
  • A JDBC database

In this chapter, we will use a local filesystem. To use the local filesystem, the config server needs to be launched with the Spring profile, native, enabled. The location of the configuration repository is specified using the property, spring.cloud.config.server.native.searchLocations.

Get Hands-On Microservices with Spring Boot and Spring Cloud 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.