Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meliorartefacts/service-harness-config
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.
https://github.com/meliorartefacts/service-harness-config
cloud-config-server spring-boot spring-client
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/meliorartefacts/service-harness-config
- Owner: MeliorArtefacts
- Created: 2024-01-23T09:24:50.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-25T19:33:16.000Z (11 months ago)
- Last Synced: 2024-01-26T19:48:54.430Z (11 months ago)
- Topics: cloud-config-server, spring-boot, spring-client
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Melior Service Harness :: Config
## Artefact
Get the artefact and the POM file in the *artefact* folder.
```org.melior
melior-harness-config
2.3```
## 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**](https://github.com/MeliorArtefacts/service-harness-core) module for detail on the Melior logging system and available utilities.