From 845e7e1b30dc89137b4a75f53454272e30178329 Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Sat, 3 Sep 2016 23:21:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=B0=8F=E7=89=88=E6=9C=AC:?= =?UTF-8?q?=20V1.4.1=20=E6=96=B0=E7=89=B9=E6=80=A7=20=20=20=20=20=20=20-?= =?UTF-8?q?=201=E3=80=81groupId=E4=BB=8Ecom.xxl=E6=94=B9=E4=B8=BAcom.xuxue?= =?UTF-8?q?li,=E4=B8=BA=E6=8E=A8=E9=80=81maven=E4=B8=AD=E5=A4=AE=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E5=81=9A=E5=89=8D=E6=9C=9F=E5=87=86=E5=A4=87;=20=20?= =?UTF-8?q?=20=20=20=20=20-=202=E3=80=81=E7=B3=BB=E7=BB=9F=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=B8=8D=E5=9C=A8=E7=BB=B4=E6=8A=A4=E5=9C=A8=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=B7=9Fpom=E4=B8=AD,=E5=90=84=E4=B8=AA=E5=AD=90?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=8D=95=E7=8B=AC=E9=85=8D=E7=BD=AE=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E9=85=8D=E7=BD=AE,=E8=A7=A3=E5=86=B3=E5=AD=90?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=97=A0=E6=B3=95=E5=8D=95=E7=8B=AC=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E7=9A=84=E9=97=AE=E9=A2=98;=20=20=20=20=20=20=20-=203?= =?UTF-8?q?=E3=80=81=E5=BA=95=E5=B1=82RPC=E9=80=9A=E8=AE=AF,=E4=BC=A0?= =?UTF-8?q?=E8=BE=93=E6=95=B0=E6=8D=AE=E7=9A=84=E5=AD=97=E8=8A=82=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E7=BB=9F=E8=AE=A1=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96?= =?UTF-8?q?,=E5=8F=AF=E8=8A=82=E7=9C=8150%=E6=95=B0=E6=8D=AE=E4=BC=A0?= =?UTF-8?q?=E8=BE=93=E9=87=8F;=20=20=20=20=20=20=20-=204=E3=80=81=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=85=AC=E5=85=B1=E5=BC=B9=E6=A1=86=E5=8A=9F=E8=83=BD?= =?UTF-8?q?,=E6=8F=92=E4=BB=B6=E5=8C=96;=20=20=20=20=20=20=20-=205?= =?UTF-8?q?=E3=80=81=E5=BA=95=E5=B1=82=E8=A1=A8=E7=BB=93=E6=9E=84,?= =?UTF-8?q?=E8=A1=A8=E6=98=8E=E7=BB=9F=E4=B8=80=E5=A4=A7=E5=86=99;=20=20?= =?UTF-8?q?=20=20=20=20=20-=206=E3=80=81=E8=B0=83=E5=BA=A6=E4=B8=AD?= =?UTF-8?q?=E5=BF=83,=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86=E5=99=A8JSON?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E7=9A=84ContentType=E4=BF=AE=E6=94=B9,?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=8D=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E7=9A=84=E9=97=AE=E9=A2=98;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++++++- pom.xml | 4 ++-- xxl-job-admin/pom.xml | 6 +++--- xxl-job-core/pom.xml | 4 ++-- .../com/xxl/job/core/util/ByteHexConverter.java | 17 +++++++++++++++-- xxl-job-executor-example/pom.xml | 6 +++--- 6 files changed, 34 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 99a5f8e2..35627b22 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 《分布式任务调度平台XXL-JOB》(最新版本V1.4.0) +# 《分布式任务调度平台XXL-JOB》(最新版本V1.4.1) ## 一、简介 #### 1.1 概述 @@ -584,6 +584,14 @@ XXL-JOB会为每次调度请求生成一个单独的日志文件,通过重写L - 6.3、调度中心中列表分页参数优化,解决一处因服务器限制post长度而引起的问题; - 6.4、执行器Jobhandler注解优化,解决一处因事务代理导致的容器无法加载JobHandler的问题; - 6.5、远程调度优化,禁用retry策略,解决一处可能导致重复调用的问题; + +#### 6.7 版本 V1.4.1 新特性 +- 1、groupId从com.xxl改为com.xuxueli,为推送maven中央仓库做前期准备; +- 2、系统版本不在维护在项目跟pom中,各个子模块单独配置版本配置,解决子模块无法单独编译的问题; +- 3、底层RPC通讯,传输数据的字节长度统计规则优化,可节省50%数据传输量; +- 4、系统公共弹框功能,插件化; +- 5、底层表结构,表明统一大写; +- 6、调度中心,异常处理器JSON响应的ContentType修改,修复浏览器不识别的问题; Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段, 地址见分支 [V1.3](https://github.com/xuxueli/xxl-job/tree/v1.3) 。新特性将会在master分支持续更新。 diff --git a/pom.xml b/pom.xml index ade50130..5102943f 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - com.xxl + com.xuxueli xxl-job ${xxl-job.version} pom @@ -13,7 +13,7 @@ - 1.4.0 + 1.4.1 3.2.14.RELEASE diff --git a/xxl-job-admin/pom.xml b/xxl-job-admin/pom.xml index 7af45ed3..f0afe829 100644 --- a/xxl-job-admin/pom.xml +++ b/xxl-job-admin/pom.xml @@ -2,7 +2,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.xxl + com.xuxueli xxl-job ${xxl-job.version} @@ -11,7 +11,7 @@ war - 1.4.0 + 1.4.1 3.2.14.RELEASE @@ -147,7 +147,7 @@ - com.xxl + com.xuxueli xxl-job-core ${xxl-job.version} diff --git a/xxl-job-core/pom.xml b/xxl-job-core/pom.xml index 66a4a5d5..eb644c76 100644 --- a/xxl-job-core/pom.xml +++ b/xxl-job-core/pom.xml @@ -2,7 +2,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.xxl + com.xuxueli xxl-job ${xxl-job.version} @@ -10,7 +10,7 @@ ${xxl-job.version} - 1.4.0 + 1.4.1 3.2.14.RELEASE diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/util/ByteHexConverter.java b/xxl-job-core/src/main/java/com/xxl/job/core/util/ByteHexConverter.java index fbb6936a..2d2db184 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/util/ByteHexConverter.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/util/ByteHexConverter.java @@ -1,5 +1,9 @@ package com.xxl.job.core.util; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.UnsupportedEncodingException; import java.math.BigInteger; /** @@ -7,7 +11,8 @@ import java.math.BigInteger; * @author xuxueli 2015-11-14 22:47:28 */ public class ByteHexConverter { - + private static Logger logger = LoggerFactory.getLogger(ByteHexConverter.class); + /** * byte - to - radix, use BigInteger */ @@ -53,7 +58,15 @@ public class ByteHexConverter { return 0; } // because java base on unicode, and one china code's length is one, but it's cost 2 bytes. - int len = str.getBytes().length * 2; + //int len = str.getBytes().length * 2; + int len = 0; + try { + len = str.getBytes("UTF-8").length; + } catch (UnsupportedEncodingException e) { + logger.error("", e); + len = str.getBytes().length * 2; + } + if (len % 4 != 0) { // Length is best in multiples of four len = (len/4 + 1) * 4; diff --git a/xxl-job-executor-example/pom.xml b/xxl-job-executor-example/pom.xml index a57ba5ef..95198b6b 100644 --- a/xxl-job-executor-example/pom.xml +++ b/xxl-job-executor-example/pom.xml @@ -2,7 +2,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.xxl + com.xuxueli xxl-job ${xxl-job.version} @@ -11,7 +11,7 @@ war - 1.4.0 + 1.4.1 3.2.14.RELEASE @@ -78,7 +78,7 @@ - com.xxl + com.xuxueli xxl-job-core ${xxl-job.version}