Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.42 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.42 KB

Back to config-ext

Consul Config Source

Maven Central Javadocs

Use consul to get config values. You can define the server details of the consul server using MicroProfile Config. Values are cached to reduce calls to consul. This config source does not support config events (yet).

Usage

    <dependency>
        <groupId>org.microprofile-ext.config-ext</groupId>
        <artifactId>configsource-consul</artifactId>
        <version>XXXXXX</version>
        <scope>runtime</scope>
    </dependency>

Configure options

configsource.consul.host (defaults to localhost)
configsource.consul.prefix (default no prefix)
configsource.consul.validity (default 30s)

You can disable the config source by setting this config:

ConsulConfigSource.enabled=false  

Links