Spring Cloud Config

Enabling Automagic config on TAS

Tested with 2.3.1.RELEASE

Add the Config client

1<dependency>
2    <groupId>io.pivotal.spring.cloud</groupId>
3    <artifactId>spring-cloud-services-starter-config-client</artifactId>
4</dependency>

Downgrade the conflig starter to 2.3 to avoid using the new cfenv. Make sure the spring-cloud-starter-dependencies is first in the list.

 1<dependencyManagement>
 2		<dependencies>
 3			<dependency>
 4				<groupId>io.pivotal.spring.cloud</groupId>
 5				<artifactId>spring-cloud-services-dependencies</artifactId>
 6				<version>2.2.1.RELEASE</version>
 7				<type>pom</type>
 8				<scope>import</scope>
 9			</dependency>
10			<dependency>
11				<groupId>org.springframework.cloud</groupId>
12				<artifactId>spring-cloud-dependencies</artifactId>
13				<version>${spring-cloud.version}</version>
14				<type>pom</type>
15				<scope>import</scope>
16			</dependency>
17		</dependencies>
18	</dependencyManagement>

References

comments powered by Disqus