Common utils for Java. Welcome to put your issues in issues.
Go to file
2019-12-11 16:40:40 +08:00
.idea readme.md 2019-12-11 16:39:53 +08:00
src readme.md 2019-12-11 16:31:21 +08:00
wiki@a6b373620b readme.md 2019-12-11 16:21:39 +08:00
_config.yml Set theme jekyll-theme-cayman 2019-11-21 16:34:27 +08:00
.gitattributes Initial commit 2019-07-26 15:12:03 +08:00
.gitignore Initial commit 2019-07-26 15:12:03 +08:00
LICENSE Initial commit 2019-07-26 15:12:03 +08:00
pom.xml connect remote server to execute commands 2019-12-05 17:52:50 +08:00
README.md Update README.md 2019-12-11 16:40:40 +08:00

CommonUtil

  • Desc: A common utils jar for using redis elasticsearch Rest and file even more these.

Download

CommonUtil.jar

CommonUtil-javadoc.jar

CommonUtil-sources.jar

Log

2019-12-05 14:33:23 New class for remotely connect to the server and execute the script.SSH2Util

How to use

Import it in your pom

Import jar into your maven

mvn install:install-file -Dfile=<path-to-file> -DgroupId=site.cnkj -DartifactId=CommonUtil -Dversion=1.0 -Dpackaging=jar

Note: is your local jar of full path.

For example:

mvn install:install-file -Dfile=/User/carol/Desktop/CommonUtil-1.0.jar -DgroupId=site.cnkj -DartifactId=CommonUtil -Dversion=1.0 -Dpackaging=jar

Import dependency into your pom.xml

<dependency>
    <groupId>site.cnkj</groupId>
    <artifactId>CommonUtil</artifactId>
    <version>1.0</version>
</dependency>

Use in project

|:---|:--|:--|:--| |RedisUtil|ElasticSearch|RestTemplateUtil|MongodbUtil|Thread Pool| |SSH2Util|DateUtil|FileEncryptDecrypt|FileUtil| |GracefulShutdown|HttpCommonUtil|KafkaUtil|LoggerUtil|StringUtil|