July 2018
Intermediate to advanced
268 pages
7h 36m
English
Make sure that your project's pom.xml has the following Maven dependency added:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-vault-config</artifactId> <version>2.0.0.RELEASE</version></dependency>
When the Spring Boot project starts, it will pick the default Vault configuration if the Vault server is running on port 8200. If you want to customize these properties, you can specify bootstrap.yml or bootstrap.properties. In our example, we will explicitly set the bootstrap.yml file with the following content:
spring: application: name: movie-applicationspring.cloud.vault: host: localhost # hostname of vault server port: 8200 # vault server port scheme: http # connection scheme ...
Read now
Unlock full access