Skip to content

consul kv store data is not able to read #1

@bryanxtong

Description

@bryanxtong

I read this book and try to run this example and found this example didnot work with current consul kv store setting(gateway is working) except I move the following contents from bootstrap to application.properties for gamification and multiplication

spring.cloud.consul.config.prefixes=config
spring.cloud.consul.config.format=yaml
spring.cloud.consul.config.default-context=defaults
spring.cloud.consul.config.data-key=application.yml

There is another way to add spring-cloud-starter-bootstrap dependency in pom which will load bootstrap.properties and It seems the default mechanism doesnot load bootstrap.properties if we are not using spring-cloud-starter-bootstrap, please correct me if I am wrong .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions