I am upgrading my spring boot App from 1.5.0 to 2.0.0. After upgrade I am unable to read vault config from bootstrap.yml
My config as follows
spring:
vault:
enabled: true
authentication: TOKEN
host: ${VAULT_ADDR:localhost}
port: ${VAULT_PORT:8200}
token: ${VAULT_TOKEN:eafaa220-901acaafffb5}
scheme: http
and my build.gradle
dependencies
springBootVersion = '2.0.9.RELEASE'
springCloudVersion = 'Finchley.SR4'
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-configuration-processor')
compile('org.springframework.boot:spring-boot-starter-hateoas')
compile('org.springframework.cloud:spring-cloud-starter-consul-config')
compile('org.springframework.cloud:spring-cloud-starter-netflix-hystrix')
implementation('org.springframework.cloud:spring-cloud-starter-vault-config')
While starting the app in local I am getting below exception
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'spring.cloud.vault' to org.springframework.cloud.vault.config.VaultProperties:
Property: spring.cloud.vault.authentication
Value: TOKEN
Origin: class path resource [bootstrap.yml]:19:23
Reason: HV000030: No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.String'. Check configuration for 'host'
Action:
Update your application's configuration
05 Jun 2024 09:53:19,637 ERROR [org.springframework.boot.SpringApplication] (main) {} Application run failed
I am not sure what is missing and appreciate any help