https://github.com/fmjsjx/libcommon
A set of some common useful libraries.
https://github.com/fmjsjx/libcommon
java json mongodb redis
Last synced: 5 months ago
JSON representation
A set of some common useful libraries.
- Host: GitHub
- URL: https://github.com/fmjsjx/libcommon
- Owner: fmjsjx
- License: mit
- Created: 2020-12-25T03:50:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-01-15T08:59:47.000Z (6 months ago)
- Last Synced: 2026-01-15T11:27:26.815Z (6 months ago)
- Topics: java, json, mongodb, redis
- Language: Java
- Homepage:
- Size: 1.25 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LibCommon Project
A set of some common useful libraries.
## JDK version compatibility list
| version | JDK version |
|---------|-------------|
| 4.x | JDK 21+ |
| 3.x | JDK 17+ |
| older | JDK 11+ |
## Add Dependencies
### Add Maven Dependencies
```xml
com.github.fmjsjx
libcommon-bom
4.1.0
pom
import
com.github.fmjsjx
libcommon-util
com.github.fmjsjx
libcommon-json-jackson2
com.github.fmjsjx
libcommon-json-jsoniter
```
### Add Gradle Dependencies
#### Groovy DSL
```groovy
repositories {
mavenCentral
}
dependencies {
// BOM
implementation platform('com.github.fmjsjx:libcommon-bom:4.1.0')
// Common Utility
implementation 'com.github.fmjsjx:libcommon-util'
// JSON library based on Fastjson2
implementation 'com.github.fmjsjx:libcommon-json-fastjson2'
// 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'
}
```
#### Kotlin DSL
```kotlin
repositories {
mavenCentral()
}
dependencies {
// BOM
implementation(platform("com.github.fmjsjx:libcommon-bom:4.1.0"))
// Common Utility
implementation("com.github.fmjsjx:libcommon-util")
// JSON library based on Fastjson2
implementation("com.github.fmjsjx:libcommon-json-fastjson2")
// 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")
}
```
## Modules
There are a number of modules in LibCommon, here is a quick overview:
### libcommon-util
The [`libcommon-util`](libcommon-util) module provides some common utility classes.
### libcommon-collection
The [`libcommon-collection`](libcommon-collection) module provides additional collection/map.
### libcommon-function
The [`libcommon-function`](libcommon-function) module provides additional functional interfaces.
### libcommon-json
The [`libcommon-json`](libcommon-json) module provides a library interface to encode/decode JSON.
### libcommon-json-fastjson2
The [`libcommon-json-fastjson2`](libcommon-json-fastjson2) module provides an implementation of [`libcommon-json`](libcommon-json) based on [`Fastjson2`](https://github.com/alibaba/fastjson2).
### libcommon-json-fastjson2-kotlin
The [`libcommon-json-fastjson2-kotlin`](libcommon-json-fastjson2-kotlin) module provides the kotlin extensions of [`libcommon-json-fastjson2`](libcommon-json-fastjson2).
### libcommon-json-jackson2
The [`libcommon-json-jackson2`](libcommon-json-jackson2) module provides an implementation of [`libcommon-json`](libcommon-json) based on [`Jackson2`](https://github.com/FasterXML/jackson).
### libcommon-json-jackson2-kotlin
The [`libcommon-json-jackson2-kotlin`](libcommon-json-jackson2-kotlin) module provides the kotlin extensions of [`libcommon-json-jackson2`](libcommon-json-jackson2).
### libcommon-json-jackson3
The [`libcommon-json-jackson3`](libcommon-json-jackson3) module provides an implementation of [`libcommon-json`](libcommon-json) based on [`Jackson3`](https://github.com/FasterXML/jackson).
### libcommon-json-jackson3-kotlin
The [`libcommon-json-jackson3-kotlin`](libcommon-json-jackson3-kotlin) module provides the kotlin extensions of [`libcommon-json-jackson3`](libcommon-json-jackson3).
### libcommon-json-jsoniter
The [`libcommon-json-jsoniter`](libcommon-json-jsoniter) module provides an implementation of [`libcommon-json`](libcommon-json) based on [`json-iterator`](https://jsoniter.com/).
### libcommon-json-jsoniter-kotlin
The [`libcommon-json-jsoniter-kotlin`](libcommon-json-jsoniter-kotlin) module provides the kotlin extensions of [`libcommon-json-jsoniter`](libcommon-json-jsoniter).
### libcommon-jwt
The [`libcommon-jwt`](libcommon-jwt) module provides a library to build/parse JWTs.
### libcommon-kotlin
The [`libcommon-kotlin`](libcommon-kotlin) module provides some utilitiy class for [**Kotlin**](https://kotlinlang.org/).
### libcommon-prometheus (legacy)
The [`libcommon-prometheus`](libcommon-prometheus) module provides Hotspot JVM metrics exports, that allow users set custom labels, based on [**prometheus simple client**](https://github.com/prometheus/client_java/tree/simpleclient).
### libcommon-prometheus-client
The [`libcommon-prometheus-client`](libcommon-prometheus-client) module provides Hotspot JVM metrics exports, that allow users set custom labels, based on [**prometheus client java**](https://prometheus.github.io/client_java/).
### libcommon-yaml
The [`libcommon-yaml`](libcommon-yaml) module provides a library interface to encode/decode YAML, with the default implementation based on [`Jackson2`](https://github.com/FasterXML/jackson).
### libcommon-redis
The [`libcommon-redis`](libcommon-redis) module provides additional utility functions for [`Lettuce`](https://lettuce.io/).
### libcommon-redis-kotlin
The [`libcommon-redis-kotlin`](libcommon-redis-kotlin) module provides the kotlin extensions of [`Lettuce`](https://lettuce.io/).
### libcommon-jdbc
The [`libcommon-util`](libcommon-util) module provides additional utility functions for JDBC.
### libcommon-bson
The [`libcommon-bson`](libcommon-bson) module provides some additional utility functions for [`BSON`](https://www.mongodb.com/basics/bson).
### libcommon-bson-kotlin
The [`libcommon-bson-kotlin`](libcommon-bson-kotlin) module provides some additional kotlin extensions for [`BSON`](https://www.mongodb.com/basics/bson).
### libcommon-uuid
The [`libcommon-uuid`](libcommon-uuid) module provides additional implementations of `UUID`.