Spring 1Config Parent Configuration

Spring 1Config Client

Лицензия

Лицензия

Категории

Категории

config Библиотеки уровня приложения Configuration
Группа

Группа

systems.bos
Идентификатор

Идентификатор

spring-1config-parent
Последняя версия

Последняя версия

0.0.8
Дата

Дата

Тип

Тип

pom
Описание

Описание

Spring 1Config Parent Configuration
Spring 1Config Client
Ссылка на сайт

Ссылка на сайт

https://github.com/brandonstubbs/spring-1config
Система контроля версий

Система контроля версий

https://github.com/brandonstubbs/spring-1config

Скачать spring-1config-parent

Имя Файла Размер
spring-1config-parent-0.0.8.pom 7 KB
Обзор

Как подключить последнюю версию

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

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • spring-1config-client
  • spring-1config-sample

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

Версии библиотеки

Версия
0.0.8