常见常用日期、字符串、数字、文件、异常、分页、树等公共类库
<dependency>
<groupId>cn.com.thinkit.cloud</groupId>
<artifactId>microservice-common-util</artifactId>
<version>1.2.1-RELEASE</version>
</dependency>
- 本项目定为大约每1个月发布一次正式版,版本号格式为X.X.0(如1.0.1,1.0.2等),遇到重大问题需修复会及时提交新版本,欢迎大家随时提交Pull Request;
- BUG修复和新特性一般会先发布成小版本作为临时测试版本(如1.0.2.B,即尾号不为0,并添加B,以区别于正式版);
本项目的BUG修复和新特性一般会先发布在*-SNAPSHOT版里供大家预览,如果要使用*-SNAPSHOT版,则需要在你的pom.xml中添加这段:
<repositories>
<repository>
<snapshots />
<id>sonatype snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
工具 | 版本或描述 |
---|---|
JDK | 1.8 |
| microservice-common-util | 公共工具类 |
com.zhongkexinli.micro.serv.common.bean.RestApiResultBuilder
RestApiResult2<T> restApiResult = RestApiResultBuilder.builder()
.respCode(1)
.respData("dataA")
.respMsg("okay")
.build();
com.zhongkexinli.micro.serv.common.bean.RestApiResult
RestApiResult2<T> restApiResult = new RestApiResult2()
.respCode(1)
.respData("dataA")
.respMsg("okay");
com.zhongkexinli.micro.serv.common.pagination.Query
new Query.putFilter("keyA","valueA")
.putFilter("keyB","valueB");
- fork代码
- 建立分支
- 提交代码,pull request
- 更新代码
- master分支,禁止在上面开发
- develop分支 开发分支
- bugfix分支 线上问题紧急修复分支
提交代码前,尽量使用工程中提供的checkstyle.xml对代码风格进行检查
微信号码:15838028035