Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consul kv store data is not able to read #1

Open
bryanxtong opened this issue Aug 20, 2024 · 1 comment
Open

consul kv store data is not able to read #1

bryanxtong opened this issue Aug 20, 2024 · 1 comment

Comments

@bryanxtong
Copy link

bryanxtong commented Aug 20, 2024

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 .

@ravikart
Copy link

Thanks bryanxtong, I was also facing the same issue.
Link to support your findings: https://docs.spring.io/spring-cloud-consul/docs/current/reference/html/#spring-cloud-consul-discovery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants