Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
950510ff
Commit
950510ff
authored
Feb 10, 2022
by
郑冰晶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化graceful-shutdown;add matrix-datasource log
parent
7d00ea38
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
55 changed files
with
143 additions
and
109 deletions
+143
-109
pom.xml
common-core/pom.xml
+1
-1
BizResponse.java
common-core/src/main/java/com/secoo/mall/common/core/bean/BizResponse.java
+23
-1
Response.java
common-core/src/main/java/com/secoo/mall/common/core/bean/Response.java
+6
-0
pom.xml
common-util/pom.xml
+1
-1
HttpClientUtils.java
common-util/src/main/java/com/secoo/mall/common/util/http/HttpClientUtils.java
+0
-0
StringUtil.java
common-util/src/main/java/com/secoo/mall/common/util/string/StringUtil.java
+5
-1
pom.xml
config-starter/pom.xml
+1
-1
pom.xml
logger-starter/pom.xml
+1
-1
pom.xml
matrix-bigdata/matrix-bigdata-hbase-starter/pom.xml
+1
-1
pom.xml
matrix-bigdata/matrix-bigdata-spark-starter/pom.xml
+1
-1
pom.xml
matrix-bigdata/pom.xml
+1
-1
pom.xml
matrix-bus/matrix-bus-canal-starter/pom.xml
+1
-1
pom.xml
matrix-bus/pom.xml
+1
-1
pom.xml
matrix-client/matrix-client-openfeign-starter/pom.xml
+1
-1
pom.xml
matrix-client/pom.xml
+1
-1
pom.xml
matrix-datahelper/matrix-datahelper-redis-core/pom.xml
+1
-1
pom.xml
matrix-datahelper/matrix-datahelper-redis-starter/pom.xml
+1
-1
pom.xml
matrix-datahelper/pom.xml
+2
-2
pom.xml
matrix-datasource/matrix-datasource-core/pom.xml
+1
-1
EncryptorFactory.java
matrix-datasource/matrix-datasource-core/src/main/java/com/secoo/mall/datasource/factory/EncryptorFactory.java
+15
-2
ApolloDataSourceProvider.java
matrix-datasource/matrix-datasource-core/src/main/java/com/secoo/mall/datasource/provider/ApolloDataSourceProvider.java
+8
-1
pom.xml
matrix-datasource/matrix-datasource-druid/pom.xml
+1
-1
pom.xml
matrix-datasource/pom.xml
+2
-2
pom.xml
matrix-gracefulshutdown/pom.xml
+1
-1
MatrixGracefulShutDownAutoConfiguration.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/autoconfigure/MatrixGracefulShutDownAutoConfiguration.java
+1
-5
AbstractShutDown.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/AbstractShutDown.java
+1
-2
ConfigConstant.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/ConfigConstant.java
+1
-3
GracefulShutDown.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/GracefulShutDown.java
+2
-5
ShutDownDataReport.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/ShutDownDataReport.java
+1
-2
ShutDownDataReportAsyncHttp.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/ShutDownDataReportAsyncHttp.java
+2
-3
StopService.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/StopService.java
+1
-1
UpDatas.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/UpDatas.java
+1
-1
DubboCustomerShutDownHook.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/hook/DubboCustomerShutDownHook.java
+1
-2
TomcatShutDownHook.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/hook/TomcatShutDownHook.java
+1
-1
AbstractTransportData.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/model/AbstractTransportData.java
+1
-1
ExecutorDetail.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/model/ExecutorDetail.java
+1
-1
ExecutorDetails.java
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/model/ExecutorDetails.java
+1
-1
pom.xml
matrix-job/matrix-job-core/pom.xml
+1
-1
pom.xml
matrix-job/matrix-job-xxl-core/pom.xml
+1
-1
pom.xml
matrix-job/matrix-job-xxl-starter/pom.xml
+1
-1
pom.xml
matrix-job/pom.xml
+3
-3
pom.xml
matrix-mq/matrix-mq-rocketmq-client/pom.xml
+1
-1
pom.xml
matrix-mq/matrix-mq-rocketmq-core/pom.xml
+1
-1
pom.xml
matrix-mq/matrix-mq-rocketmq-starter/pom.xml
+1
-1
pom.xml
matrix-mq/pom.xml
+2
-2
pom.xml
matrix-mybatis/matrix-mybatis-core/pom.xml
+1
-1
pom.xml
matrix-mybatis/matrix-mybatis-starter/pom.xml
+1
-1
pom.xml
matrix-mybatis/pom.xml
+4
-4
pom.xml
matrix-protocol/matrix-protocol-core/pom.xml
+1
-1
pom.xml
matrix-protocol/matrix-protocol-dubbo-core/pom.xml
+1
-1
pom.xml
matrix-protocol/matrix-protocol-dubbo-starter/pom.xml
+1
-1
pom.xml
matrix-protocol/matrix-protocol-web-core/pom.xml
+1
-1
pom.xml
matrix-protocol/matrix-protocol-web-starter/pom.xml
+1
-1
pom.xml
matrix-protocol/pom.xml
+6
-6
pom.xml
pom.xml
+23
-28
No files found.
common-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
common-core/src/main/java/com/secoo/mall/common/core/bean/BizResponse.java
View file @
950510ff
...
@@ -17,9 +17,31 @@ public class BizResponse<T> extends Response<T> {
...
@@ -17,9 +17,31 @@ public class BizResponse<T> extends Response<T> {
super
(
code
,
msg
);
super
(
code
,
msg
);
}
}
public
BizResponse
(
Integer
code
,
String
msg
,
T
data
)
{
super
(
code
,
msg
,
data
);
}
public
boolean
isSuccess
()
{
public
boolean
isSuccess
()
{
return
getCode
()
!=
null
&&
getCode
()
==
CommonConstant
.
Success
.
CODE
;
return
getCode
()
!=
null
&&
getCode
().
equals
(
CommonConstant
.
Success
.
CODE
);
}
public
static
<
T
>
BizResponse
<
T
>
success
(
T
data
)
{
return
new
BizResponse
<>(
CommonConstant
.
Success
.
CODE
,
CommonConstant
.
Success
.
MSG
,
data
);
}
public
static
<
T
>
BizResponse
<
T
>
success
(
Integer
code
,
String
msg
)
{
return
new
BizResponse
<>(
code
,
msg
);
}
}
public
static
<
T
>
BizResponse
<
T
>
success
(
Integer
code
,
String
msg
,
T
data
)
{
return
new
BizResponse
<>(
code
,
msg
,
data
);
}
public
static
<
T
>
BizResponse
<
T
>
fail
(
Integer
code
,
String
msg
)
{
return
new
BizResponse
<>(
code
,
msg
);
}
public
static
<
T
>
BizResponse
<
T
>
fail
(
Integer
code
,
String
msg
,
T
data
)
{
return
new
BizResponse
<>(
code
,
msg
,
data
);
}
}
}
common-core/src/main/java/com/secoo/mall/common/core/bean/Response.java
View file @
950510ff
...
@@ -21,6 +21,12 @@ public class Response<T> implements Serializable {
...
@@ -21,6 +21,12 @@ public class Response<T> implements Serializable {
this
.
msg
=
msg
;
this
.
msg
=
msg
;
}
}
public
Response
(
Integer
code
,
String
msg
,
T
data
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
this
.
data
=
data
;
}
public
Integer
getCode
()
{
public
Integer
getCode
()
{
return
code
;
return
code
;
}
}
...
...
common-util/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
common-util/src/main/java/com/secoo/mall/common/util/http/HttpClientUtils.java
View file @
950510ff
This diff is collapsed.
Click to expand it.
common-util/src/main/java/com/secoo/mall/common/util/string/StringUtil.java
View file @
950510ff
...
@@ -78,7 +78,7 @@ public class StringUtil extends StringUtils {
...
@@ -78,7 +78,7 @@ public class StringUtil extends StringUtils {
}
}
public
static
String
line
(){
public
static
String
line
(){
String
lineSeparator
=
System
.
getProperty
(
"line.separator"
,
"\n"
);
String
lineSeparator
=
System
.
getProperty
(
"line.separator"
,
String
.
valueOf
(
CharConstant
.
LF
)
);
return
lineSeparator
;
return
lineSeparator
;
}
}
...
@@ -95,5 +95,9 @@ public class StringUtil extends StringUtils {
...
@@ -95,5 +95,9 @@ public class StringUtil extends StringUtils {
System
.
out
.
println
(
"toHyphen=="
+
toHyphen
(
str3
,
'-'
));
System
.
out
.
println
(
"toHyphen=="
+
toHyphen
(
str3
,
'-'
));
System
.
out
.
println
(
toSnakeCase
(
"test-jdate"
,
'-'
));
System
.
out
.
println
(
toSnakeCase
(
"test-jdate"
,
'-'
));
System
.
out
.
println
(
line
());
System
.
out
.
println
(
"========"
);
}
}
}
}
config-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
logger-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-bigdata/matrix-bigdata-hbase-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-bigdata
</artifactId>
<artifactId>
matrix-bigdata
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-bigdata/matrix-bigdata-spark-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-bigdata
</artifactId>
<artifactId>
matrix-bigdata
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-bigdata/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-bus/matrix-bus-canal-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-bus
</artifactId>
<artifactId>
matrix-bus
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-bus/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-client/matrix-client-openfeign-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-client
</artifactId>
<artifactId>
matrix-client
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-client/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-datahelper/matrix-datahelper-redis-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-datahelper
</artifactId>
<artifactId>
matrix-datahelper
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-datahelper/matrix-datahelper-redis-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-datahelper
</artifactId>
<artifactId>
matrix-datahelper
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-datahelper/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-datahelper-redis-core
</artifactId>
<artifactId>
matrix-datahelper-redis-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
...
matrix-datasource/matrix-datasource-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-datasource
</artifactId>
<artifactId>
matrix-datasource
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-datasource/matrix-datasource-core/src/main/java/com/secoo/mall/datasource/factory/EncryptorFactory.java
View file @
950510ff
...
@@ -13,6 +13,7 @@ import com.secoo.mall.datasource.constant.DataSourceConstant;
...
@@ -13,6 +13,7 @@ import com.secoo.mall.datasource.constant.DataSourceConstant;
import
com.secoo.mall.datasource.errorcode.DataSourceError
;
import
com.secoo.mall.datasource.errorcode.DataSourceError
;
import
com.secoo.mall.datasource.util.SysUtil
;
import
com.secoo.mall.datasource.util.SysUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.time.StopWatch
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.net.HttpURLConnection
;
import
java.net.HttpURLConnection
;
...
@@ -60,6 +61,9 @@ public class EncryptorFactory<T> {
...
@@ -60,6 +61,9 @@ public class EncryptorFactory<T> {
* @return
* @return
*/
*/
private
String
initPrivateKey
()
{
private
String
initPrivateKey
()
{
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
();
String
appId
=
configUtil
.
getAppId
();
String
appId
=
configUtil
.
getAppId
();
if
(
StringUtil
.
isEmpty
(
appId
))
{
if
(
StringUtil
.
isEmpty
(
appId
))
{
throw
new
BusinessException
(
DataSourceError
.
APP_ID_NOT_EXIST
);
throw
new
BusinessException
(
DataSourceError
.
APP_ID_NOT_EXIST
);
...
@@ -84,11 +88,14 @@ public class EncryptorFactory<T> {
...
@@ -84,11 +88,14 @@ public class EncryptorFactory<T> {
return
String
.
join
(
""
,
strings
);
return
String
.
join
(
""
,
strings
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"
connetion server error
"
,
e
);
log
.
error
(
""
,
e
);
}
finally
{
}
finally
{
if
(
connection
!=
null
)
{
if
(
connection
!=
null
)
{
connection
.
disconnect
();
connection
.
disconnect
();
}
}
stopWatch
.
stop
();
log
.
info
(
"init PrivateKey elapsed {}ms"
,
stopWatch
.
getTime
());
}
}
return
null
;
return
null
;
...
@@ -96,15 +103,21 @@ public class EncryptorFactory<T> {
...
@@ -96,15 +103,21 @@ public class EncryptorFactory<T> {
private
void
createEncryptor
()
{
private
void
createEncryptor
()
{
if
(
StringUtil
.
isNotEmpty
(
this
.
privateKey
))
{
if
(
StringUtil
.
isNotEmpty
(
this
.
privateKey
))
{
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
();
MatrixUrlClassLoader
.
getInstance
().
loadByUrl
(
DataSourceConstant
.
SECURITY_FILE_JAR_PATH
);
MatrixUrlClassLoader
.
getInstance
().
loadByUrl
(
DataSourceConstant
.
SECURITY_FILE_JAR_PATH
);
String
[]
args
=
this
.
privateKey
.
split
(
DataSourceConstant
.
ENCRY_FLAG
);
String
[]
args
=
this
.
privateKey
.
split
(
DataSourceConstant
.
ENCRY_FLAG
);
encryptor
=
MatrixUrlClassLoader
.
getInstance
().
loadClassByFullName
(
"com.secoo.mall.app.security.encryptor.StringEncryptor"
,
Encryptor
.
class
,
new
Class
[]{
String
.
class
,
String
.
class
},
args
);
encryptor
=
MatrixUrlClassLoader
.
getInstance
().
loadClassByFullName
(
"com.secoo.mall.app.security.encryptor.StringEncryptor"
,
Encryptor
.
class
,
new
Class
[]{
String
.
class
,
String
.
class
},
args
);
stopWatch
.
stop
();
log
.
info
(
"create Encryptor elapsed {}ms"
,
stopWatch
.
getTime
());
}
}
/**
/**
* 如果无法从远程创建解密对象,则进行降级处理
* 如果无法从远程创建解密对象,则进行降级处理
*/
*/
if
(
Objects
.
isNull
(
encryptor
))
{
if
(
Objects
.
isNull
(
encryptor
))
{
log
.
warn
(
"load remote encryptor fail
.
use default encryptor"
);
log
.
warn
(
"load remote encryptor fail
,
use default encryptor"
);
encryptor
=
new
Encryptor
<
T
>()
{
encryptor
=
new
Encryptor
<
T
>()
{
@Override
@Override
public
T
encrypt
(
T
value
)
{
public
T
encrypt
(
T
value
)
{
...
...
matrix-datasource/matrix-datasource-core/src/main/java/com/secoo/mall/datasource/provider/ApolloDataSourceProvider.java
View file @
950510ff
...
@@ -14,6 +14,7 @@ import com.secoo.mall.datasource.properties.MatrixDataSourceProperties;
...
@@ -14,6 +14,7 @@ import com.secoo.mall.datasource.properties.MatrixDataSourceProperties;
import
com.secoo.mall.datasource.util.SysUtil
;
import
com.secoo.mall.datasource.util.SysUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.reflect.MethodUtils
;
import
org.apache.commons.lang3.reflect.MethodUtils
;
import
org.apache.commons.lang3.time.StopWatch
;
import
javax.sql.DataSource
;
import
javax.sql.DataSource
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
...
@@ -34,9 +35,14 @@ public class ApolloDataSourceProvider<T extends MatrixDataSourceConfig> extends
...
@@ -34,9 +35,14 @@ public class ApolloDataSourceProvider<T extends MatrixDataSourceConfig> extends
@Override
@Override
protected
List
<
T
>
getDataSourceProperties
()
{
protected
List
<
T
>
getDataSourceProperties
()
{
log
.
info
(
"load config from apollo..."
);
log
.
info
(
"load config from apollo..."
);
StopWatch
stopWatch
=
new
StopWatch
();
stopWatch
.
start
();
Config
appConfig
=
ConfigService
.
getConfig
(
DataSourceConstant
.
DB_NAMESPACE
);
Config
appConfig
=
ConfigService
.
getConfig
(
DataSourceConstant
.
DB_NAMESPACE
);
Set
<
String
>
propertyNames
=
appConfig
.
getPropertyNames
();
Set
<
String
>
propertyNames
=
appConfig
.
getPropertyNames
();
List
<
T
>
list
=
Lists
.
newArrayList
();
stopWatch
.
stop
();
log
.
info
(
"load config from apollo elapsed {}ms"
,
stopWatch
.
getTime
());
Map
<
String
,
DataSource
>
dataSourceMap
=
new
HashMap
<>();
Map
<
String
,
DataSource
>
dataSourceMap
=
new
HashMap
<>();
...
@@ -50,6 +56,7 @@ public class ApolloDataSourceProvider<T extends MatrixDataSourceConfig> extends
...
@@ -50,6 +56,7 @@ public class ApolloDataSourceProvider<T extends MatrixDataSourceConfig> extends
Map
<
String
,
Class
>
fieldMap
=
FieldUtil
.
getAllFieldsList
(
getEntryClass
()).
stream
().
collect
(
Collectors
.
toMap
(
Field:
:
getName
,
Field:
:
getType
,
(
key1
,
key2
)
->
key1
));
Map
<
String
,
Class
>
fieldMap
=
FieldUtil
.
getAllFieldsList
(
getEntryClass
()).
stream
().
collect
(
Collectors
.
toMap
(
Field:
:
getName
,
Field:
:
getType
,
(
key1
,
key2
)
->
key1
));
Set
<
String
>
notSupportPropertySet
=
new
HashSet
<>();
Set
<
String
>
notSupportPropertySet
=
new
HashSet
<>();
List
<
T
>
list
=
Lists
.
newArrayList
();
try
{
try
{
for
(
Map
.
Entry
<
String
,
List
<
String
>>
entry
:
dsPpropertyMap
.
entrySet
())
{
for
(
Map
.
Entry
<
String
,
List
<
String
>>
entry
:
dsPpropertyMap
.
entrySet
())
{
String
dsName
=
entry
.
getKey
();
String
dsName
=
entry
.
getKey
();
...
...
matrix-datasource/matrix-datasource-druid/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-datasource
</artifactId>
<artifactId>
matrix-datasource
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-datasource/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-datasource-core
</artifactId>
<artifactId>
matrix-datasource-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
...
...
matrix-gracefulshutdown/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/autoconfigure/MatrixGracefulShutDownAutoConfiguration.java
View file @
950510ff
package
com
.
secoo
.
mall
.
gracefulshutdown
.
autoconfigure
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
autoconfigure
;
import
com.secoo.mall.common.core.service.UpDatas
;
import
com.secoo.mall.gracefulshutdown.component.UpDatas
;
import
com.secoo.mall.common.util.string.StringUtil
;
import
com.secoo.mall.gracefulshutdown.component.ShutDownDataReportAsyncHttp
;
import
com.secoo.mall.gracefulshutdown.component.ShutDownDataReportAsyncHttp
;
import
com.secoo.mall.gracefulshutdown.monitor.config.ConfigCenter
;
import
com.secoo.mall.gracefulshutdown.monitor.config.ConfigCenter
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.exception.ConfigurationException
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.ProviderService
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.ProviderService
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.RegistryServerSync
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.RegistryServerSync
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.impl.ProviderServiceImpl
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.impl.ProviderServiceImpl
;
import
com.secoo.mall.gracefulshutdown.monitor.utils.Tool
;
import
com.secoo.mall.gracefulshutdown.monitor.utils.Tool
;
import
com.secoo.mall.gracefulshutdown.component.GracefulShutDown
;
import
com.secoo.mall.gracefulshutdown.component.GracefulShutDown
;
import
com.secoo.mall.gracefulshutdown.component.ShutDownDataReport
;
import
com.secoo.mall.gracefulshutdown.component.TomcatGracefulShutDown
;
import
com.secoo.mall.gracefulshutdown.component.TomcatGracefulShutDown
;
import
com.secoo.mall.gracefulshutdown.component.hook.DubboCustomerShutDownHook
;
import
com.secoo.mall.gracefulshutdown.component.hook.DubboCustomerShutDownHook
;
import
com.secoo.mall.gracefulshutdown.component.hook.TomcatShutDownHook
;
import
com.secoo.mall.gracefulshutdown.component.hook.TomcatShutDownHook
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.dubbo.common.URL
;
import
org.apache.dubbo.common.URL
;
import
org.apache.dubbo.common.extension.ExtensionLoader
;
import
org.apache.dubbo.common.extension.ExtensionLoader
;
import
org.apache.dubbo.registry.Registry
;
import
org.apache.dubbo.registry.Registry
;
...
...
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/AbstractShutDown.java
View file @
950510ff
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
import
com.secoo.mall.common.core.service.StopService
;
import
com.secoo.mall.gracefulshutdown.component.model.ExecutorDetail
;
import
com.secoo.mall.common.core.bean.gracefulshowtdownBean.ExecutorDetail
;
public
abstract
class
AbstractShutDown
implements
StopService
<
ExecutorDetail
>,
Comparable
{
public
abstract
class
AbstractShutDown
implements
StopService
<
ExecutorDetail
>,
Comparable
{
//定义执行顺序
//定义执行顺序
...
...
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/ConfigConstant.java
View file @
950510ff
...
@@ -2,9 +2,7 @@ package com.secoo.mall.gracefulshutdown.component;
...
@@ -2,9 +2,7 @@ package com.secoo.mall.gracefulshutdown.component;
public
class
ConfigConstant
{
public
class
ConfigConstant
{
// public static String EXWARN="http://172.17.76.196:6080/gracefulshutdown/gracefulSave";
public
static
String
EXWARN_URL
=
"http://exwarn.secoo.com/gracefulshutdown/gracefulSave"
;
// public static String EXWARN="http://test-exwarn.secoo.com/gracefulshutdown/gracefulSave";
public
static
String
EXWARN
=
"http://exwarn.secoo.com/gracefulshutdown/gracefulSave"
;
public
static
final
int
CONNECT_TIMEOUT
=
1000
;
//连接超时时间
public
static
final
int
CONNECT_TIMEOUT
=
1000
;
//连接超时时间
public
static
final
int
SOCKET_TIMEOUT
=
5000
;
//等待数据超时时间
public
static
final
int
SOCKET_TIMEOUT
=
5000
;
//等待数据超时时间
...
...
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/GracefulShutDown.java
View file @
950510ff
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.secoo.mall.common.core.bean.gracefulshowtdownBean.ExecutorDetail
;
import
com.secoo.mall.gracefulshutdown.component.model.ExecutorDetail
;
import
com.secoo.mall.common.core.bean.gracefulshowtdownBean.ExecutorDetails
;
import
com.secoo.mall.gracefulshutdown.component.model.ExecutorDetails
;
import
com.secoo.mall.common.core.service.StopService
;
import
com.secoo.mall.common.core.service.UpDatas
;
import
com.secoo.mall.common.util.date.DateUtil
;
import
com.secoo.mall.common.util.date.DateUtil
;
import
com.secoo.mall.common.util.log.LoggerUtil
;
import
com.secoo.mall.common.util.log.LoggerUtil
;
import
com.secoo.mall.gracefulshutdown.monitor.utils.Tool
;
import
com.secoo.mall.gracefulshutdown.monitor.utils.Tool
;
import
com.secoo.mall.gracefulshutdown.component.hook.TomcatShutDownHook
;
import
org.apache.dubbo.common.utils.NetUtils
;
import
org.apache.dubbo.common.utils.NetUtils
;
import
org.apache.dubbo.config.DubboShutdownHook
;
import
org.apache.dubbo.config.DubboShutdownHook
;
import
org.apache.dubbo.config.spring.extension.SpringExtensionFactory
;
import
org.apache.dubbo.config.spring.extension.SpringExtensionFactory
;
...
...
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/ShutDownDataReport.java
View file @
950510ff
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.secoo.mall.common.core.service.UpDatas
;
import
com.secoo.mall.common.util.log.LoggerUtil
;
import
com.secoo.mall.common.util.log.LoggerUtil
;
import
com.secoo.mall.
common.core.bean.gracefulshowtdownBean
.ExecutorDetails
;
import
com.secoo.mall.
gracefulshutdown.component.model
.ExecutorDetails
;
import
com.secoo.mall.common.util.string.StringUtil
;
import
com.secoo.mall.common.util.string.StringUtil
;
import
org.apache.dubbo.common.URL
;
import
org.apache.dubbo.common.URL
;
import
org.apache.dubbo.common.extension.ExtensionLoader
;
import
org.apache.dubbo.common.extension.ExtensionLoader
;
...
...
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/ShutDownDataReportAsyncHttp.java
View file @
950510ff
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.secoo.mall.common.core.bean.gracefulshowtdownBean.ExecutorDetails
;
import
com.secoo.mall.gracefulshutdown.component.model.ExecutorDetails
;
import
com.secoo.mall.common.core.service.UpDatas
;
import
com.secoo.mall.common.util.http.HttpClientUtils
;
import
com.secoo.mall.common.util.http.HttpClientUtils
;
import
org.apache.http.NameValuePair
;
import
org.apache.http.NameValuePair
;
import
org.apache.http.client.entity.UrlEncodedFormEntity
;
import
org.apache.http.client.entity.UrlEncodedFormEntity
;
...
@@ -22,7 +21,7 @@ public class ShutDownDataReportAsyncHttp implements UpDatas<ExecutorDetails> {
...
@@ -22,7 +21,7 @@ public class ShutDownDataReportAsyncHttp implements UpDatas<ExecutorDetails> {
try
{
try
{
String
result
=
JSON
.
toJSONString
(
obj
);
String
result
=
JSON
.
toJSONString
(
obj
);
HttpPost
httpPost
=
new
HttpPost
(
ConfigConstant
.
EXWARN
);
HttpPost
httpPost
=
new
HttpPost
(
ConfigConstant
.
EXWARN
_URL
);
List
<
NameValuePair
>
nvps
=
new
ArrayList
<
NameValuePair
>();
List
<
NameValuePair
>
nvps
=
new
ArrayList
<
NameValuePair
>();
nvps
.
add
(
new
BasicNameValuePair
(
"gracefulresult"
,
result
));
nvps
.
add
(
new
BasicNameValuePair
(
"gracefulresult"
,
result
));
HttpClientUtils
.
setHttpParam
(
ConfigConstant
.
CONNECT_TIMEOUT
,
ConfigConstant
.
SOCKET_TIMEOUT
,
ConfigConstant
.
REQUEST_TIMEOUT
);
HttpClientUtils
.
setHttpParam
(
ConfigConstant
.
CONNECT_TIMEOUT
,
ConfigConstant
.
SOCKET_TIMEOUT
,
ConfigConstant
.
REQUEST_TIMEOUT
);
...
...
common-core/src/main/java/com/secoo/mall/common/core/service
/StopService.java
→
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component
/StopService.java
View file @
950510ff
package
com
.
secoo
.
mall
.
common
.
core
.
service
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
public
interface
StopService
<
T
>{
public
interface
StopService
<
T
>{
...
...
common-core/src/main/java/com/secoo/mall/common/core/service
/UpDatas.java
→
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component
/UpDatas.java
View file @
950510ff
package
com
.
secoo
.
mall
.
common
.
core
.
service
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
;
public
interface
UpDatas
<
T
>
{
public
interface
UpDatas
<
T
>
{
public
boolean
upData
(
T
t
)
throws
Exception
;
public
boolean
upData
(
T
t
)
throws
Exception
;
...
...
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/hook/DubboCustomerShutDownHook.java
View file @
950510ff
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
.
hook
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
.
hook
;
import
com.secoo.mall.
common.core.bean.gracefulshowtdownBean
.ExecutorDetail
;
import
com.secoo.mall.
gracefulshutdown.component.model
.ExecutorDetail
;
import
com.secoo.mall.common.util.date.DateUtil
;
import
com.secoo.mall.common.util.date.DateUtil
;
import
com.secoo.mall.common.util.log.LoggerUtil
;
import
com.secoo.mall.common.util.log.LoggerUtil
;
import
com.secoo.mall.common.util.string.StringUtil
;
import
com.secoo.mall.common.util.string.StringUtil
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.Constants.Constants
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.ProviderService
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.ProviderService
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.RegistryServerSync
;
import
com.secoo.mall.gracefulshutdown.monitor.dubbo.service.RegistryServerSync
;
import
com.secoo.mall.gracefulshutdown.monitor.utils.Stack
;
import
com.secoo.mall.gracefulshutdown.monitor.utils.Stack
;
...
...
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/hook/TomcatShutDownHook.java
View file @
950510ff
...
@@ -2,7 +2,7 @@ package com.secoo.mall.gracefulshutdown.component.hook;
...
@@ -2,7 +2,7 @@ package com.secoo.mall.gracefulshutdown.component.hook;
import
com.secoo.mall.common.util.date.DateUtil
;
import
com.secoo.mall.common.util.date.DateUtil
;
import
com.secoo.mall.common.util.string.StringUtil
;
import
com.secoo.mall.common.util.string.StringUtil
;
import
com.secoo.mall.
common.core.bean.gracefulshowtdownBean
.ExecutorDetail
;
import
com.secoo.mall.
gracefulshutdown.component.model
.ExecutorDetail
;
import
com.secoo.mall.gracefulshutdown.component.AbstractShutDown
;
import
com.secoo.mall.gracefulshutdown.component.AbstractShutDown
;
import
org.apache.catalina.connector.Connector
;
import
org.apache.catalina.connector.Connector
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
...
common-core/src/main/java/com/secoo/mall/common/core/bean/gracefulshowtdownBean
/AbstractTransportData.java
→
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/model
/AbstractTransportData.java
View file @
950510ff
package
com
.
secoo
.
mall
.
common
.
core
.
bean
.
gracefulshowtdownBean
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
.
model
;
public
class
AbstractTransportData
<
T
>
{
public
class
AbstractTransportData
<
T
>
{
T
t
;
T
t
;
...
...
common-core/src/main/java/com/secoo/mall/common/core/bean/gracefulshowtdownBean
/ExecutorDetail.java
→
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/model
/ExecutorDetail.java
View file @
950510ff
package
com
.
secoo
.
mall
.
common
.
core
.
bean
.
gracefulshowtdownBean
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
.
model
;
import
java.util.List
;
import
java.util.List
;
...
...
common-core/src/main/java/com/secoo/mall/common/core/bean/gracefulshowtdownBean
/ExecutorDetails.java
→
matrix-gracefulshutdown/src/main/java/com/secoo/mall/gracefulshutdown/component/model
/ExecutorDetails.java
View file @
950510ff
package
com
.
secoo
.
mall
.
common
.
core
.
bean
.
gracefulshowtdownBean
;
package
com
.
secoo
.
mall
.
gracefulshutdown
.
component
.
model
;
import
java.util.List
;
import
java.util.List
;
...
...
matrix-job/matrix-job-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-job
</artifactId>
<artifactId>
matrix-job
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-job/matrix-job-xxl-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-job
</artifactId>
<artifactId>
matrix-job
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-job/matrix-job-xxl-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-job
</artifactId>
<artifactId>
matrix-job
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-job/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -21,12 +21,12 @@
...
@@ -21,12 +21,12 @@
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-job-core
</artifactId>
<artifactId>
matrix-job-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-job-xxl-core
</artifactId>
<artifactId>
matrix-job-xxl-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo
</groupId>
<groupId>
com.secoo
</groupId>
...
...
matrix-mq/matrix-mq-rocketmq-client/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-mq
</artifactId>
<artifactId>
matrix-mq
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-mq/matrix-mq-rocketmq-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-mq
</artifactId>
<artifactId>
matrix-mq
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-mq/matrix-mq-rocketmq-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-mq
</artifactId>
<artifactId>
matrix-mq
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-mq/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-mq-rocketmq-core
</artifactId>
<artifactId>
matrix-mq-rocketmq-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.rocketmq
</groupId>
<groupId>
org.apache.rocketmq
</groupId>
...
...
matrix-mybatis/matrix-mybatis-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-mybatis
</artifactId>
<artifactId>
matrix-mybatis
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-mybatis/matrix-mybatis-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-mybatis
</artifactId>
<artifactId>
matrix-mybatis
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-mybatis/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -25,17 +25,17 @@
...
@@ -25,17 +25,17 @@
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-mybatis-core
</artifactId>
<artifactId>
matrix-mybatis-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-datasource-druid
</artifactId>
<artifactId>
matrix-datasource-druid
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-mybatis-starter
</artifactId>
<artifactId>
matrix-mybatis-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<groupId>
com.baomidou
</groupId>
...
...
matrix-protocol/matrix-protocol-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-protocol
</artifactId>
<artifactId>
matrix-protocol
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-protocol/matrix-protocol-dubbo-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-protocol
</artifactId>
<artifactId>
matrix-protocol
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-protocol/matrix-protocol-dubbo-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-protocol
</artifactId>
<artifactId>
matrix-protocol
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-protocol/matrix-protocol-web-core/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-protocol
</artifactId>
<artifactId>
matrix-protocol
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-protocol/matrix-protocol-web-starter/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix-protocol
</artifactId>
<artifactId>
matrix-protocol
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
matrix-protocol/pom.xml
View file @
950510ff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -29,27 +29,27 @@
...
@@ -29,27 +29,27 @@
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-core
</artifactId>
<artifactId>
matrix-protocol-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-web-core
</artifactId>
<artifactId>
matrix-protocol-web-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-dubbo-core
</artifactId>
<artifactId>
matrix-protocol-dubbo-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-web-starter
</artifactId>
<artifactId>
matrix-protocol-web-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-dubbo-starter
</artifactId>
<artifactId>
matrix-protocol-dubbo-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<!-- Aapche Dubbo -->
<!-- Aapche Dubbo -->
...
...
pom.xml
View file @
950510ff
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
...
@@ -54,119 +54,119 @@
...
@@ -54,119 +54,119 @@
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
logger-starter
</artifactId>
<artifactId>
logger-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-core
</artifactId>
<artifactId>
common-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
config-starter
</artifactId>
<artifactId>
config-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-util
</artifactId>
<artifactId>
common-util
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-datasource-druid
</artifactId>
<artifactId>
matrix-datasource-druid
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-mybatis-core
</artifactId>
<artifactId>
matrix-mybatis-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-mybatis-starter
</artifactId>
<artifactId>
matrix-mybatis-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-mq-rocketmq-core
</artifactId>
<artifactId>
matrix-mq-rocketmq-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-mq-rocketmq-client
</artifactId>
<artifactId>
matrix-mq-rocketmq-client
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<!--rocketmq-starter废弃,启用matrix-mq-rocketmq-starter-->
<!--rocketmq-starter废弃,启用matrix-mq-rocketmq-starter-->
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-mq-rocketmq-starter
</artifactId>
<artifactId>
matrix-mq-rocketmq-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-core
</artifactId>
<artifactId>
matrix-protocol-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-dubbo-core
</artifactId>
<artifactId>
matrix-protocol-dubbo-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-dubbo-starter
</artifactId>
<artifactId>
matrix-protocol-dubbo-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-web-core
</artifactId>
<artifactId>
matrix-protocol-web-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-protocol-web-starter
</artifactId>
<artifactId>
matrix-protocol-web-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-job-xxl-core
</artifactId>
<artifactId>
matrix-job-xxl-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-job-xxl-starter
</artifactId>
<artifactId>
matrix-job-xxl-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-bigdata-hbase-starter
</artifactId>
<artifactId>
matrix-bigdata-hbase-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<!--redis-->
<!--redis-->
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-datahelper-redis-core
</artifactId>
<artifactId>
matrix-datahelper-redis-core
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-datahelper-redis-starter
</artifactId>
<artifactId>
matrix-datahelper-redis-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-client-openfeign-starter
</artifactId>
<artifactId>
matrix-client-openfeign-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<!-- bus -->
<!-- bus -->
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix-bus-canal-starter
</artifactId>
<artifactId>
matrix-bus-canal-starter
</artifactId>
<version>
2.0.1
7
.RELEASE
</version>
<version>
2.0.1
8
.RELEASE
</version>
</dependency>
</dependency>
<!--普通jar-->
<!--普通jar-->
...
@@ -196,11 +196,6 @@
...
@@ -196,11 +196,6 @@
<version>
1.2.58
</version>
<version>
1.2.58
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.esotericsoftware
</groupId>
<artifactId>
kryo
</artifactId>
<version>
4.0.2
</version>
</dependency>
<dependency>
<groupId>
com.lmax
</groupId>
<groupId>
com.lmax
</groupId>
<artifactId>
disruptor
</artifactId>
<artifactId>
disruptor
</artifactId>
<version>
3.4.2
</version>
<version>
3.4.2
</version>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment