February 2019
Intermediate to advanced
442 pages
11h 46m
English
This is the most straightforward way of creating a component as a Spring Boot application. Create an application with STS and select the DevTool and Config server dependencies. Once the project is created, you can see the dependency in pom.xml that is responsible for adding Spring Cloud Config capabilities to the Spring Boot application, as follows:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-server</artifactId> </dependency>
Next up, let's enable the Spring Cloud Config feature. Open the main bootstrap class and add the @EnableConfigServer annotation, which is used to enable external configuration:
@EnableConfigServer@SpringBootApplication ...