config-helper

Simplify property file load

License

License

Categories

Categories

config Application Layer Libs Configuration
GroupId

GroupId

io.github.snowthinker
ArtifactId

ArtifactId

config-helper
Last Version

Last Version

0.0.4-RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

config-helper
Simplify property file load
Project URL

Project URL

https://github.com/snowThinker/config-helper
Source Code Management

Source Code Management

https://github.com/snowThinker/config-helper

Download config-helper

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.snowthinker/config-helper/ -->
<dependency>
    <groupId>io.github.snowthinker</groupId>
    <artifactId>config-helper</artifactId>
    <version>0.0.4-RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.snowthinker/config-helper/
implementation 'io.github.snowthinker:config-helper:0.0.4-RELEASE'
// https://jarcasting.com/artifacts/io.github.snowthinker/config-helper/
implementation ("io.github.snowthinker:config-helper:0.0.4-RELEASE")
'io.github.snowthinker:config-helper:jar:0.0.4-RELEASE'
<dependency org="io.github.snowthinker" name="config-helper" rev="0.0.4-RELEASE">
  <artifact name="config-helper" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.snowthinker', module='config-helper', version='0.0.4-RELEASE')
)
libraryDependencies += "io.github.snowthinker" % "config-helper" % "0.0.4-RELEASE"
[io.github.snowthinker/config-helper "0.0.4-RELEASE"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.commons : commons-configuration2 jar 2.4
org.slf4j : slf4j-api jar 1.7.25

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

###config-helper

支持读取jar包内的配置文件

用法

PropertiesConfiguration propsConfig = PropertyHelper.getInstance("test1.properties", "test2.properties");
String test1String = propsConfig.getString("test1.string");
Integer test1Integer = propsConfig.getInteger("test1.integer", null);

Versions

Version
0.0.4-RELEASE
0.0.3-RELEASE
0.0.2-RELEASE
0.0.1-RELEASE