2

I am configuring Consul with SpringBoot and found a documentation here. Even browsed other resources, no more additional configs or scenarios found.

Therefore, I am curious whether only those configurations are available when springboot app is integrated with consul. I would like to deep dive and Can anyone let me know any other properties available ?

pvpkiran
  • 25,582
  • 8
  • 87
  • 134
Débora
  • 5,816
  • 28
  • 99
  • 171

2 Answers2

3

These are the properties available.

enter image description here

enter image description here

These are used in org.springframework.cloud.consul.config.ConsulConfigProperties, org.springframework.cloud.consul.discovery.ConsulDiscoveryProperties.

Best place to see which property is being used where is to see AutoConfiguration of any module. For example for Mongo check MongoAutoConfiguration and MongoDataAutoConfiguration. Similarly, for consul check ConsulAutoConfiguration

pvpkiran
  • 25,582
  • 8
  • 87
  • 134
  • Thanks a lot. Can I know any workaround to see these props? – Débora Feb 04 '18 at 17:23
  • You should check `org.springframework.cloud.consul.config.ConsulConfigProperties`, `org.springframework.cloud.consul.discovery.ConsulDiscoveryProperties` – pvpkiran Feb 04 '18 at 22:26
0

This page will provide configuration properties

https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html

In addition, you can see the config properties in your IDE itself. If you are using IntelliJ or STS/Eclipse, go to application.yml file, you can view and see the configurations available by pressing Ctrl + space . It will give suggestions.

Dhanushka N
  • 170
  • 2
  • 12