1 Star 1 Fork 0

方敏杰 / libcommon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

LibCommon Project

A set of some common useful libraries.

Since 3.0, members of libraries always based on JDK 17.

Add Dependencies

Add Maven Dependencies

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>

Add Gradle Dependencies

Groovy DSL


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'
}

Kotlin DSL


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")
}

Modules

There are a number of modules in LibCommon, here is a quick overview:

libcommon-util

The libcommon-util module provides some common utility classes.

libcommon-collection

The libcommon-collection module provides additional collection/map.

libcommon-function

The libcommon-function module provides additional functional interfaces.

libcommon-json

The libcommon-json module provides a library interface to encode/decode JSON.

libcommon-json-jackson2

The libcommon-json-jackson2 module provides an implementation of libcommon-json based on Jackson2.

libcommon-json-jsoniter

The libcommon-json-jsoniter module provides an implementation of libcommon-json based on json-iterator.

libcommon-json-dsljson

The libcommon-json-dsljson module provides an implementation of libcommon-json based on DSL-JSON.

libcommon-kotlin

The libcommon-kotlin module provides some utilitiy class for Kotlin.

libcommon-prometheus

The libcommon-prometheus module provides Hotspot JVM metrics exports, that allow users set custom labels, based on prometheus.

libcommon-yaml

The libcommon-yaml module provides a library interface to encode/decode YAML and it's default implementation based on Jackson2.

libcommon-redis

The libcommon-redis module provides additional utility functions for Lettuce.

libcommon-jdbc

The libcommon-util module provides additional utility functions for JDBC.

libcommon-aliyunons

The libcommon-aliyunons module provides additional utility functions for ALIYUN Open Services/RocketMQ.

libcommon-rocketmq

The libcommon-rocketmq module provides additional utility functions for RocketMQ.

libcommon-bson

The libcommon-bson module provides some additional kotlin extensions for BSON.

MIT License Copyright (c) 2020 fmjsjx Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

A set of some common useful libraries. 展开 收起
Java 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/fmjsjx/libcommon.git
git@gitee.com:fmjsjx/libcommon.git
fmjsjx
libcommon
libcommon
master

搜索帮助