A set of some common useful libraries.
Since 3.0, members of libraries always based on JDK 17.
pom.xml
<pom>
<dependencyManagement>
<dependencies>
<!-- BOM -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libcommon-bom</artifactId>
<version>3.1.0-RC1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- Common Utility -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libcommon-util</artifactId>
</dependency>
<!-- JSON library based on Jackson2 -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libcommon-json-jackson2</artifactId>
</dependency>
<!-- JSON library based on Json-Iter -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libcommon-json-jsoniter</artifactId>
</dependency>
</dependencies>
</pom>
repositories {
mavenCentral
}
dependencies {
// BOM
implementation platform('com.github.fmjsjx:libcommon-bom:3.1.0-RC1')
// Common Utility
implementation 'com.github.fmjsjx:libcommon-util'
// JSON library based on Jackson2
implementation 'com.github.fmjsjx:libcommon-json-jackson2'
// JSON library based on Json-Iter
implementation 'com.github.fmjsjx:libcommon-json-jsoniter'
}
repositories {
mavenCentral()
}
dependencies {
// BOM
implementation(platform("com.github.fmjsjx:libcommon-bom:3.1.0-RC1"))
// Common Utility
implementation("com.github.fmjsjx:libcommon-util")
// JSON library based on Jackson2
implementation("com.github.fmjsjx:libcommon-json-jackson2")
// JSON library based on Json-Iter
implementation("com.github.fmjsjx:libcommon-json-jsoniter")
}
There are a number of modules in LibCommon, here is a quick overview:
The libcommon-util
module provides some common utility classes.
The libcommon-collection
module provides additional collection/map.
The libcommon-function
module provides additional functional interfaces.
The libcommon-json
module provides a library interface to encode/decode JSON.
The libcommon-json-jackson2
module provides an implementation of libcommon-json
based on Jackson2
.
The libcommon-json-jsoniter
module provides an implementation of libcommon-json
based on json-iterator
.
The libcommon-json-dsljson
module provides an implementation of libcommon-json
based on DSL-JSON
.
The libcommon-kotlin
module provides some utilitiy class for Kotlin.
The libcommon-prometheus
module provides Hotspot JVM metrics exports, that allow users set custom labels, based on prometheus.
The libcommon-yaml
module provides a library interface to encode/decode YAML and it's default implementation based on Jackson2
.
The libcommon-redis
module provides additional utility functions for Lettuce
.
The libcommon-util
module provides additional utility functions for JDBC.
The libcommon-aliyunons
module provides additional utility functions for ALIYUN Open Services/RocketMQ
.
The libcommon-rocketmq
module provides additional utility functions for RocketMQ
.
The libcommon-bson
module provides some additional kotlin extensions for BSON
.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。