项目依赖于zxy-commons-bom,请下载zxy-commons-bom后并执行./gradlew publishToMavenLocal安装到本地maven仓库.
jdk 1.8+
gradle 2.14+
在项目根目录执行:./gradlew build
如果测试用例报错,可能是某个资源连接不上,可以加上-x test -x integTest跳过
修改gradle.properties:
#snapshot地址
snapshotsUrl=
#release地址
releaseUrl=
#用户名
username=
#密码
password=
./gradlew publishToMavenLocal
./gradlew publish
加解密工具模块,包括RSA/BouncyCastle、base64、sha、md5等。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-codec</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
dubbo基础操作模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-dubbo</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
邮件发送模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-email</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
执行系统命令模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-exec</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
Http client工具模块,包括文件下载,post,get等方法。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-httpclient</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
json处理工具,包括Object/Collection/Map与String的互转。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-json</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
常用工具模块,包括集合、对象、字符串、id生成等功能,并对commons-lang与guava部分功能进行了二次封装。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-lang</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
memcache基础操作模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-memcache</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
Model与dto自动映射模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-modelmapper</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
kafka mq基础操作模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-mq</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
spring+mybatis基础操作模块,包括数据库读写分离与缓存。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-mybatis</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
spring+quartz基础操作模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-quartz</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
非spring项目的redis基础操作模块,包括集群与非集群操作。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-redis</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
spring基础包,包括spring的一些常用依赖。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-spring</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
spring mvc基础包,包括spring mvc的一些常用依赖。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-web</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
dubbo rest扩展包,包括dubbo rest的一些常用依赖。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-rest</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
性能监控profiler基础包,包括性能监控profiler的一些常用依赖。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-profiler</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
spring框架的redis缓存操作模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-cache</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
内嵌web jetty常用依赖。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-jetty</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
junit常用依赖。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-test</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
连接池模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-pool</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
findbugs依赖模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-findbugs</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
spring mongodb依赖模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-mongodb</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
日志系统的一些常用依赖。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-logger</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
常用网络传输模块。目前暂时只实现了FTP的功能。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-net</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
POI工具类,暂时只实现对excel的操作。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-poi</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
通过代码自动生成文档的依赖包。目前用swagger实现。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-apidocs</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
hystrix依赖模块。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-hystrix</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
trace分布式跟踪依赖模块(基于zipkin实现)。 具体请参考
依赖添加:
<dependency>
<groupId>com.zxy</groupId>
<artifactId>zxy-commons-trace</artifactId>
<version>${zxy_commons_version}</version>
</dependency>
后续会增加以下功能:
- hbase
- elasticsearch
- zeroc-ice
- seaweedfs
- fastdfs
- thrift
- QQ: 442336467
- 微信: zhaoxunyong
- email: zhaoxunyong@qq.com