z-core

Java and spring utilities

License

License

GroupId

GroupId

com.github.happyjiahui
ArtifactId

ArtifactId

z-core
Last Version

Last Version

0.1.29
Release Date

Release Date

Type

Type

jar
Description

Description

z-core
Java and spring utilities

Download z-core

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.happyjiahui/z-core/ -->
<dependency>
    <groupId>com.github.happyjiahui</groupId>
    <artifactId>z-core</artifactId>
    <version>0.1.29</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.happyjiahui/z-core/
implementation 'com.github.happyjiahui:z-core:0.1.29'
// https://jarcasting.com/artifacts/com.github.happyjiahui/z-core/
implementation ("com.github.happyjiahui:z-core:0.1.29")
'com.github.happyjiahui:z-core:jar:0.1.29'
<dependency org="com.github.happyjiahui" name="z-core" rev="0.1.29">
  <artifact name="z-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.happyjiahui', module='z-core', version='0.1.29')
)
libraryDependencies += "com.github.happyjiahui" % "z-core" % "0.1.29"
[com.github.happyjiahui/z-core "0.1.29"]

Dependencies

compile (2)

Group / Artifact Type Version
de.ruedigermoeller : fst jar 2.57
commons-beanutils : commons-beanutils jar 1.9.4

provided (9)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.1.0
org.slf4j : slf4j-api jar 1.7.25
ch.qos.logback : logback-classic jar 1.2.3
com.fasterxml.jackson.core : jackson-core jar 2.10.0
com.fasterxml.jackson.core : jackson-databind jar 2.10.0
org.rocksdb : rocksdbjni jar 5.5.1
com.lmax : disruptor jar 3.4.2
org.apache.poi : poi-ooxml jar 4.1.2
org.jeasy : easy-rules-core jar 4.0.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.hamcrest : hamcrest-all jar 1.3

Project Modules

There are no modules declared in this project.

z-tool

  • fillExcelByTemplate 使用说明:

    excel模板分为两部分:

    1. 需要全局替换的字符串,在excel模板中用 $key$ 表示,直接在单元格中声明模板;

      例如: 公司周报 $startDate$ -- $endDate$ 编写人: $username$

    2. 表格数据,需先在excel定义模板行,模板的信息用json表示,在单元格的批注声明,并需要模板行定义好格式,数据会按照模板行单元格指定的格式进行填充,注意模板行的首列必须声明,如没有声明则不认为这行为模板行,一个excel可以声明多个模板行;

      模板的json信息格式如下:

      /**
       * 数据标识
       */
      private String dataFlag;
      /**
       * 字段名称
       */
      private String fieldName;
      /**
       * 合并字段名称
       */
      private String mergedFieldName;
      /**
       * 后并后是否需要合计
       */
      private boolean sum;
      /**
       * 合并后是否需要重新编号
       */
      private boolean autoNumber;

Versions

Version
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.4
0.1.3
0.1.1
0.1