August 2018
Intermediate to advanced
372 pages
9h 29m
English
A Spring Cloud configuration server is built on the top of a regular Spring Boot application. All you need to do is add the following additional dependency:
compile('org.springframework.cloud:spring-cloud-config-server')
Once the dependency has been added, you need to activate the configuration server using an additional annotation in the application, as shown in the following code:
@SpringBootApplication@EnableConfigServerpublic class ConfigServerApplication { public static void main(String[] args) { SpringApplication.run(ConfigServerApplication.class, args); }}
Finally, you need to provide the Git repository URL, which stores the configuration for your microservices in the application.yaml file, as follows: ...
Read now
Unlock full access