I try to use Consul as configuration server with Spring boot. I already succeed to use the kv store of consul to fetch variables, but now I want to be able to fetch variables as YAML files. Here is my bootstrap.yaml :
spring:
cloud.consul:
host: localhost
port: 8500
config:
enabled: true
format: YAML
failFast: true
I put this config on consul on the path "/config/my.application.name/data" :
testspring: hello
And I try to reach this property using :
@Value("${testspring}")
... with no success. What am I missing here ? What is the good path for config on consul ?
Thanks
EDIT : It appears that the config is loaded on the value ${data} and that it is not parsed. The data="testspring: hello", which is not what is expected.