spring-1config-client


License

License

Categories

Categories

CLI User Interface config Application Layer Libs Configuration
GroupId

GroupId

systems.bos
ArtifactId

ArtifactId

spring-1config-client
Last Version

Last Version

0.0.8
Release Date

Release Date

Type

Type

jar
Description

Description

spring-1config-client
spring-1config-client

Download spring-1config-client

How to add to project

<!-- https://jarcasting.com/artifacts/systems.bos/spring-1config-client/ -->
<dependency>
    <groupId>systems.bos</groupId>
    <artifactId>spring-1config-client</artifactId>
    <version>0.0.8</version>
</dependency>
// https://jarcasting.com/artifacts/systems.bos/spring-1config-client/
implementation 'systems.bos:spring-1config-client:0.0.8'
// https://jarcasting.com/artifacts/systems.bos/spring-1config-client/
implementation ("systems.bos:spring-1config-client:0.0.8")
'systems.bos:spring-1config-client:jar:0.0.8'
<dependency org="systems.bos" name="spring-1config-client" rev="0.0.8">
  <artifact name="spring-1config-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='systems.bos', module='spring-1config-client', version='0.0.8')
)
libraryDependencies += "systems.bos" % "spring-1config-client" % "0.0.8"
[systems.bos/spring-1config-client "0.0.8"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-autoconfigure jar 2.4.2
org.springframework.cloud : spring-cloud-starter-bootstrap jar 3.0.1
com.brunobonacci » oneconfig jar 0.21.0
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.4.2

Project Modules

There are no modules declared in this project.

spring-1config

spring-1config-client is a spring boot client implementation for 1Config (A tool and a library to manage application secrets and configuration safely and effectively.).

spring-1config-sample is an application to demo this spring-1config-client

Usage

Before getting started please read how the 1Config library works

For an example project please see spring-1config-sample

Add the library to your pom.xml

<dependency>
    <groupId>systems.bos</groupId>
    <artifactId>spring-1config-client</artifactId>
    <version>0.0.8</version>
</dependency>

Make sure your application has the following properties available

spring.application.name=your-awesome-app
spring.application.version=0.0.3

1Config stores configuration using a :key, :version and :env. This library maps your configuration as below to match those fields.

1Config spring-1config
:key spring.application.name
:version spring.application.version
:env *Active profile

*Active profile - spring-1config-client only supports one active profile.
It is recommended to set this via the environment variable SPRING_PROFILES_ACTIVE, this will ensure that your application is only packaged with default configuration and environment specific configuration is retrieved from 1Config.
If no profile is found it will try and get configuration using the local env.

Automatic property expansion

If you want to automatically populate your properties file with your project version from your pom.xml or build.gradle. Please follow this article: https://www.baeldung.com/spring-boot-auto-property-expansion

Configuration type support

The spring-1config-client supports the following configuration types:

  • properties
  • json
  • yaml

TODO

  • Tests
  • Local DynamoDB + KMS
  • Improve Documentation

Versions

Version
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1