Error during spring vault configuration in spring boot application

I do agree with M. Deinum that it’s really hard to help you with just a stacktrace. That said, I recently ran into a similar exception while trying to use spring-cloud-vault-starter-config.

I believe the detail you are missing is the vault configuration (spring.cloud.vault.*) must reside in src/main/resources/bootstrap.yml.

This is because the vault-starter-config is a spring-cloud-config related project, which needs to perform some processing before typical spring-boot loading can proceed (namely, retrieving configuration values from Vault).

Leave a Comment