Skip to content

An easy to use extension to the client side of the Spring Cloud Config Server, with support for sending the host name or the environment name to the Spring Cloud Config Server.

Notifications You must be signed in to change notification settings

MeliorArtefacts/service-harness-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Melior Service Harness :: Config

Artefact

Get the artefact and the POM file in the artefact folder.

<dependency>
    <groupId>org.melior</groupId>
    <artifactId>melior-harness-config</artifactId>
    <version>2.3</version>
</dependency>

Client

Set the config data location in the application properties to use the Spring Cloud Config Server extended client. If no profile is active, then by default the host name is sent to the Spring Cloud Config Server as the profile.

spring.config.import=csx:http://config.server:8888

If one or more profiles are active, extend the config data location with a shortcut to send a different value to the Spring Cloud Config Server as the profile. This is equivalent to using the spring.cloud.config.profile application property.

spring.config.import=csx:http://config.server:8888|some.other.value

If one or more profiles are active, extend the config data location to send the host name to the Spring Cloud Config Server as the profile.

spring.config.import=csx:http://config.server:8888|${host.name}

If the config data location is not extended, and either an environment.name system property or an ENVIRONMENT_NAME environment variable is set, then the environment name is sent to the Spring Cloud Config Server as the profile.

 

References

Refer to the Melior Service Harness :: Core module for detail on the Melior logging system and available utilities.

About

An easy to use extension to the client side of the Spring Cloud Config Server, with support for sending the host name or the environment name to the Spring Cloud Config Server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages