A configuration repository, for spring cloud config server
This repository serves a configuration service for different microservices deployed in pivotal cloud foundry.
Steps
-
Open CLI, and run cf create-service p-config-server trial config-server -c {"git": { "uri": "https://github.com/gopikrishhnaChokkalamani/configuration-repository.git", "searchPaths": "configuration/"} }'
-
in the spring boot app, add the below dependencies in pom.xml https://docs.pivotal.io/spring-cloud-services/1-2/config-server/
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Edgware.SR2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.pivotal.spring.cloud</groupId>
<artifactId>spring-cloud-services-dependencies</artifactId>
<version>1.6.3.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.pivotal.spring.cloud</groupId>
<artifactId>spring-cloud-services-starter-config-client</artifactId>
<version>1.6.3.RELEASE</version>
</dependency>
- in bootstrap.yml, add the below key
security:
basic:
enabled: false