Chameleon

A light-weight library to manage the configurations

License

License

Categories

Categories

Net
GroupId

GroupId

net.meku.chameleon
ArtifactId

ArtifactId

chameleon-demo
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

Chameleon
A light-weight library to manage the configurations
Project URL

Project URL

https://github.com/shoopman/chameleon
Source Code Management

Source Code Management

https://github.com/shoopman/chameleon

Download chameleon-demo

How to add to project

<!-- https://jarcasting.com/artifacts/net.meku.chameleon/chameleon-demo/ -->
<dependency>
    <groupId>net.meku.chameleon</groupId>
    <artifactId>chameleon-demo</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/net.meku.chameleon/chameleon-demo/
implementation 'net.meku.chameleon:chameleon-demo:1.0.3'
// https://jarcasting.com/artifacts/net.meku.chameleon/chameleon-demo/
implementation ("net.meku.chameleon:chameleon-demo:1.0.3")
'net.meku.chameleon:chameleon-demo:jar:1.0.3'
<dependency org="net.meku.chameleon" name="chameleon-demo" rev="1.0.3">
  <artifact name="chameleon-demo" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.meku.chameleon', module='chameleon-demo', version='1.0.3')
)
libraryDependencies += "net.meku.chameleon" % "chameleon-demo" % "1.0.3"
[net.meku.chameleon/chameleon-demo "1.0.3"]

Dependencies

compile (5)

Group / Artifact Type Version
net.meku.chameleon : chameleon-starter jar 1.0.3
org.springframework.boot : spring-boot-starter-web jar 2.1.7.RELEASE
io.springfox : springfox-swagger2 jar 2.9.2
io.springfox : springfox-swagger-ui jar 2.9.2
org.springframework.boot : spring-boot-starter-data-redis jar 2.1.7.RELEASE

Project Modules

There are no modules declared in this project.

Introduction

Chameleon is a light-weight library to manage the configurations of an application. It can support for distributed systems by redis module.

Usage

Introduce to your project

Gradle build.gradle

    compile("net.meku.chameleon:chameleon-starter:1.0.2")

Maven pom.xml

	<dependency>
		<groupId>net.meku.chameleon</groupId>
		<artifactId>chameleon-starter</artifactId>
		<version>1.0.2</version>
	</dependency>
        

Import ConfigService and have fun.

    @Autowired
    private ConfigService configService;

    // Add or update a configuration
    configService.save(configable);

    // Get the value of a configuration
    String s1 = configService.getString(key1);
    int i1 = configService.getInt(key2);

Versions

Version
1.0.3
1.0.2
1.0.1