Samples (Parent)

An common tools for Java.

License

License

GroupId

GroupId

com.github.mrzhqiang.helper.sample
ArtifactId

ArtifactId

sample-parent
Last Version

Last Version

2018.1.2
Release Date

Release Date

Type

Type

pom
Description

Description

Samples (Parent)
An common tools for Java.

Download sample-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.mrzhqiang.helper.sample/sample-parent/ -->
<dependency>
    <groupId>com.github.mrzhqiang.helper.sample</groupId>
    <artifactId>sample-parent</artifactId>
    <version>2018.1.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.mrzhqiang.helper.sample/sample-parent/
implementation 'com.github.mrzhqiang.helper.sample:sample-parent:2018.1.2'
// https://jarcasting.com/artifacts/com.github.mrzhqiang.helper.sample/sample-parent/
implementation ("com.github.mrzhqiang.helper.sample:sample-parent:2018.1.2")
'com.github.mrzhqiang.helper.sample:sample-parent:pom:2018.1.2'
<dependency org="com.github.mrzhqiang.helper.sample" name="sample-parent" rev="2018.1.2">
  <artifact name="sample-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.mrzhqiang.helper.sample', module='sample-parent', version='2018.1.2')
)
libraryDependencies += "com.github.mrzhqiang.helper.sample" % "sample-parent" % "2018.1.2"
[com.github.mrzhqiang.helper.sample/sample-parent "2018.1.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • datetime
  • name
  • random

helper

Release

Java API 总让人陷入选择困难,即便老手也会在浩瀚如海的 JavaDoc 中迷失自我,更不用说那些新手们。

一个活生生的例子就是,java.util.Date 类对时间格式化非常不友好,并且由于它并非 final——不可变类,所以总导致一些莫名其妙的问题,比如多线程格式化异常,另外还有很多设计上的缺陷,例如日期时间混合问题、时区问题、国际化问题,这些缺陷在 《Effective Java》 中也有提及。

为了避免这一类问题,节省编写模板代码的时间,helper 库由此诞生。

简介

  • helper-jre 模块:JVM 辅助工具,项目依赖包含 Guava 库(谷歌开源的辅助工具),Config 库(加载默认参数常量)。
  • helper-javafx 模块:JavaFX 辅助工具,利用 RxJavaFx 库实现 MVVM 架构更方便。
  • helper-data 模块:提供数据相关辅助工具,使用 Guice 依赖注入实例。
    • helper-data-api 模块:定义基本的数据接口,比如 RepositoryPaging 等。
    • helper-data-redis 模块:简化 Jedis 的使用。
    • helper-data-ebean 模块:简化 EBean 的使用(主要基于 MySQL 数据库)。
    • helper-data-cassandra 模块:简化 Cassandra-driver-core 的使用。
    • helper-data-elasticsearch 模块:简化 Elastic Search 客户端 rest 的使用。

使用

  1. 访问 jitpack.io,添加本仓库的 URL 以获取依赖。
  2. 参考 helper-sample 模块,获取更详细的使用方法。

计划

  • 【文档处理模块】Excel 表格、Word 文档、PDF 文档:简历、报表、文件
  • 【支付集成】:支付宝、微信、第三方及第四方支付
  • 【IM 集成】:xmpp 协议、腾讯云 IM、极光推送 IM
  • 【短信集成】:暴风短信、阿里云短信、腾讯云短信、网易云短信、华为云短信、极光短信、第三方短信
  • 【直播集成】:三体云语音视频聊天、极光语音视频聊天、腾讯云视频直播
  • 【视频点播】:腾讯云短视频、OSS 对象存储付费功能

Licenses

   Copyright 2020 mrzhqiang

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Versions

Version
2018.1.2
2018.1.1
2018.1.0
1.0-beta