cz-common-utils

Demo project for Spring Boot

License

License

GroupId

GroupId

io.github.whyareyousoseriously
ArtifactId

ArtifactId

cz-common-utils
Last Version

Last Version

0.1.8.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

cz-common-utils
Demo project for Spring Boot
Project URL

Project URL

https://projects.spring.io/spring-boot/#/spring-boot-starter-parent/cz-common-utils
Source Code Management

Source Code Management

https://github.com/whyareyousoseriously/cz-common-utils

Download cz-common-utils

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.whyareyousoseriously/cz-common-utils/ -->
<dependency>
    <groupId>io.github.whyareyousoseriously</groupId>
    <artifactId>cz-common-utils</artifactId>
    <version>0.1.8.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.whyareyousoseriously/cz-common-utils/
implementation 'io.github.whyareyousoseriously:cz-common-utils:0.1.8.RELEASE'
// https://jarcasting.com/artifacts/io.github.whyareyousoseriously/cz-common-utils/
implementation ("io.github.whyareyousoseriously:cz-common-utils:0.1.8.RELEASE")
'io.github.whyareyousoseriously:cz-common-utils:jar:0.1.8.RELEASE'
<dependency org="io.github.whyareyousoseriously" name="cz-common-utils" rev="0.1.8.RELEASE">
  <artifact name="cz-common-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.whyareyousoseriously', module='cz-common-utils', version='0.1.8.RELEASE')
)
libraryDependencies += "io.github.whyareyousoseriously" % "cz-common-utils" % "0.1.8.RELEASE"
[io.github.whyareyousoseriously/cz-common-utils "0.1.8.RELEASE"]

Dependencies

compile (8)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-web jar 2.1.4.RELEASE
com.google.guava : guava jar 20.0
org.projectlombok : lombok jar 1.18.6
com.alibaba : easyexcel jar 2.1.3
com.alibaba : fastjson jar 1.2.73
commons-httpclient : commons-httpclient jar 3.1
org.apache.httpcomponents : httpclient jar 4.5.5
com.xuxueli : xxl-excel jar 1.1.1

Project Modules

There are no modules declared in this project.

cz-common-utils

介绍

一些通用的工具集合

文档

特性

  • 1、日期转换工具
  • 2、Http请求工具
  • 3、IP工具
  • 4、返回对象封装工具
  • 5、lombok 1.18.8
  • 6、guava 20.0
  • 7、fastjson 1.2.47
  • 8、xxl-excel 1.1.1
  • 9、深拷贝

开始

maven

<dependency>
  <groupId>io.github.whyareyousoseriously</groupId>
  <artifactId>cz-common-utils</artifactId>
  <version>0.1.1-RELEASE</version>
</dependency>

1.日期转换工具

  • 时间戳与时间互转
  • 获取指定时间戳的零点时间戳
  • 获取年份,月份,天,小时,分钟,秒,毫秒
  • 获取下一月月初的时间戳
  • 获取当月天数

9.深拷贝

  • List集合的深拷贝,单个对象的深拷贝
@Test
    public void test(){
        List<String> l1 = Lists.newArrayList();
        l1.add("张山");
        List<String> l2 =  BeanCopierUtil.deepCopyList(l1);
        l2.add("李四");
        System.out.println(l1.toString());
        System.out.println(l2.toString());
    }

    @Test
    public void test2(){
        @Data
        class A{
            private String name;

        }
        A a = new A();
        a.setName("张山");
        A b = new A();
        BeanCopierUtil.deepCopyObject(a,b);
        b.setName("六六");
        System.out.println(System.identityHashCode(a));
        System.out.println(System.identityHashCode(b));
        System.out.println(a.toString());
        System.out.println(b.toString());
    }

Versions

Version
0.1.8.RELEASE
0.1.7.RELEASE
0.1.4-RELEASE
0.1.3-RELEASE
0.1.2-RELEASE
0.1.1-RELEASE
0.1.0-RELEASE
0.0.9-RELEASE
0.0.8-RELEASE
0.0.8-jdk7-RELEASE
0.0.7-jdk7-RELEASE
0.0.6-RELEASE
0.0.4-RELEASE
0.0.3-RELEASE
0.0.2-RELEASE
0.0.1-RELEASE