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
3a5754a4
Commit
3a5754a4
authored
May 25, 2019
by
qiuweili123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify version
parent
6a6dc751
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
43 additions
and
29 deletions
+43
-29
pom.xml
common-core/pom.xml
+1
-1
ProdEnvCondition.java
common-core/src/main/java/com/secoo/mall/common/core/condition/ProdEnvCondition.java
+16
-0
pom.xml
common-util/pom.xml
+1
-1
pom.xml
dubbo-starter/pom.xml
+1
-1
pom.xml
elasticsearch-starter/pom.xml
+1
-1
pom.xml
mongodb-starter/pom.xml
+1
-1
pom.xml
monitor-starter/pom.xml
+1
-1
pom.xml
mybatis-starter/pom.xml
+1
-1
pom.xml
openfeign-starter/pom.xml
+1
-1
pom.xml
pom.xml
+13
-13
pom.xml
redis-starter/pom.xml
+1
-1
pom.xml
rocketmq-starter/pom.xml
+1
-1
pom.xml
web-starter/pom.xml
+1
-5
SwaggerConfig.java
web-starter/src/main/java/com/secoo/mall/web/config/SwaggerConfig.java
+3
-1
No files found.
common-core/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
common-core/src/main/java/com/secoo/mall/common/core/condition/ProdEnvCondition.java
0 → 100644
View file @
3a5754a4
package
com
.
secoo
.
mall
.
common
.
core
.
condition
;
import
com.secoo.mall.common.constant.CommonConstant
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.springframework.context.annotation.Condition
;
import
org.springframework.context.annotation.ConditionContext
;
import
org.springframework.core.type.AnnotatedTypeMetadata
;
public
class
ProdEnvCondition
implements
Condition
{
@Override
public
boolean
matches
(
ConditionContext
conditionContext
,
AnnotatedTypeMetadata
annotatedTypeMetadata
)
{
String
[]
profiles
=
conditionContext
.
getEnvironment
().
getActiveProfiles
();
return
!
ArrayUtils
.
contains
(
profiles
,
CommonConstant
.
Env
.
PROD
);
}
}
common-util/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
dubbo-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
elasticsearch-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
mongodb-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
monitor-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
mybatis-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
openfeign-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
pom.xml
View file @
3a5754a4
...
...
@@ -6,7 +6,7 @@
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix
</artifactId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
<packaging>
pom
</packaging>
...
...
@@ -28,67 +28,67 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.1.4.RELEASE
</version>
<relativePath
/>
<relativePath/>
</parent>
<properties>
<java.version>
1.8
</java.version>
<dubbo.version>
2.7.1
</dubbo.version>
<matrix.version>
1.0.1-DEV-SNAPSHOT
</matrix.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-core
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-util
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
redis-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
mybatis-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
mongodb-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
elasticsearch-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
dubbo-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
web-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
rocketmq-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
openfeign-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
${matrix.version}
</version>
</dependency>
<!--spring cloud-->
<dependency>
...
...
redis-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
rocketmq-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
web-starter/pom.xml
View file @
3a5754a4
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1
-SNAPSHOT
</version>
<version>
1.0.1-DEV
-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
@@ -17,10 +17,6 @@
<artifactId>
common-util
</artifactId>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
...
...
web-starter/src/main/java/com/secoo/mall/web/config/SwaggerConfig.java
View file @
3a5754a4
package
com
.
secoo
.
mall
.
web
.
config
;
import
com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI
;
import
com.secoo.mall.common.core.condition.ProdEnvCondition
;
import
com.secoo.mall.web.annotation.ApiController
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Conditional
;
import
org.springframework.context.annotation.Configuration
;
import
springfox.documentation.builders.ApiInfoBuilder
;
import
springfox.documentation.builders.PathSelectors
;
...
...
@@ -17,7 +19,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2
@EnableSwaggerBootstrapUI
@Conditional
OnProperty
(
name
=
"swagger.enable"
,
havingValue
=
"true"
)
@Conditional
(
ProdEnvCondition
.
class
)
public
class
SwaggerConfig
{
@Value
(
"${spring.application.name}"
)
...
...
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