Skip to content

Files

config

About

  1. Config Server which automatically injects configurations where we import participant configs to our apps

Dependencies

Spring Cloud Configuration Server

  1. In application.properties add application.name and server.port
  2. Add @EnableConfigServer at main class
  3. Link a local repository as Source
  4. Create a file in a local repository about api-composer.properties
  5. Add ls.max and ls.min in this file
  6. Add spring.cloud.config.server.git.uri=location of /path/to/git/repo/properties/file
  7. Now we can navigate http://localhost:8888/api-composer/default to check the properties of api-composer.properties
    1. Now we can create files such as api-composer-dev.properties and api-composer-qa, and we have options to navigate to
  8. http://localhost:8888/api-composer/dev or http://localhost:8888/api-composer/qa