These are chat archives for spring-cloud/spring-cloud

15th
Jun 2017
Sushant
@bsushant-athena
Jun 15 2017 04:22
how to reduce the time required for eureka to realize that a service has been registered or removed ? @dsyer
Tommy Ludwig
@shakuzen
Jun 15 2017 04:26
You don’t need to mention a specific person. Someone who happens to see the question and can help will.
Selim Ok
@selimok
Jun 15 2017 14:57
Hi There, is it possible to serve raw configuration files (e.g. xml or json files rather than properties or yaml files) via spring cloud config?
The motivation: For a part of our business logic, we need json based configuration files. I want to manage all of our configuration in a single git repository and serve them over a single configuration server if possible.
Selim Ok
@selimok
Jun 15 2017 15:07
Oh I found my answer now :)
Dave Syer
@dsyer
Jun 15 2017 15:07
It's in the user guide
Selim Ok
@selimok
Jun 15 2017 15:08
Simply putting test-dev.json file into git and calling the servers path
http://localhost:8888/test/dev/master/test.json
is what I want :)
Dave Syer
@dsyer
Jun 15 2017 15:09
Yep. Note that with plain text files you get placeholder resolution for free as well.
Selim Ok
@selimok
Jun 15 2017 15:09
@dsyer I cannot found it in the user guide, maybe I have overlooked
Can you give me a simple example for placeholder resolution? Do you mean like @project.artifactId@ in application.properties files?
thanks :)