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
32bba4fd
Commit
32bba4fd
authored
May 27, 2019
by
QIANGLU
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into dev
parents
3a5754a4
14864d61
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
118 additions
and
34 deletions
+118
-34
pom.xml
common-util/pom.xml
+13
-2
SpringUtil.java
common-util/src/main/java/com/secoo/mall/common/util/spring/SpringUtil.java
+1
-0
pom.xml
config-starter/pom.xml
+27
-0
ApolloAutoConfiguration.java
config-starter/src/main/java/com/secoo/mall/config/configuration/ApolloAutoConfiguration.java
+12
-0
app.properties
config-starter/src/main/resources/META-INF/app.properties
+0
-0
spring.factories
config-starter/src/main/resources/META-INF/spring.factories
+4
-0
pom.xml
pom.xml
+48
-31
pom.xml
web-starter/pom.xml
+13
-1
No files found.
common-util/pom.xml
View file @
32bba4fd
...
...
@@ -30,8 +30,19 @@
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<version>
20.0
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
</dependency>
</dependencies>
...
...
common-util/src/main/java/com/secoo/mall/common/util/spring/SpringUtil.java
View file @
32bba4fd
...
...
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Component;
public
class
SpringUtil
implements
ApplicationContextAware
{
private
static
ApplicationContext
context
;
@Override
public
void
setApplicationContext
(
ApplicationContext
arg0
)
throws
BeansException
{
context
=
arg0
;
...
...
config-starter/pom.xml
0 → 100644
View file @
32bba4fd
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<version>
0.1-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
config-starter
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.ctrip.framework.apollo
</groupId>
<artifactId>
apollo-client
</artifactId>
<version>
1.4.0
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
config-starter/src/main/java/com/secoo/mall/config/configuration/ApolloAutoConfiguration.java
0 → 100644
View file @
32bba4fd
package
com
.
secoo
.
mall
.
config
.
configuration
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
org.springframework.context.annotation.Configuration
;
/**
* @author qianglu
*/
@Configuration
@EnableApolloConfig
public
class
ApolloAutoConfiguration
{
}
config-starter/src/main/resources/META-INF/app.properties
0 → 100644
View file @
32bba4fd
config-starter/src/main/resources/META-INF/spring.factories
0 → 100755
View file @
32bba4fd
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.secoo.mall.config.configuration.ApolloAutoConfiguration
\ No newline at end of file
pom.xml
View file @
32bba4fd
...
...
@@ -22,6 +22,7 @@
<module>
openfeign-starter
</module>
<module>
monitor-starter
</module>
<module>
rocketmq-starter
</module>
<module>
config-starter
</module>
</modules>
<parent>
...
...
@@ -47,6 +48,11 @@
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
config-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-util
</artifactId>
<version>
${matrix.version}
</version>
</dependency>
...
...
@@ -90,14 +96,7 @@
<artifactId>
openfeign-starter
</artifactId>
<version>
${matrix.version}
</version>
</dependency>
<!--spring cloud-->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
Greenwich.RELEASE
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
...
...
@@ -155,7 +154,11 @@
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.47
</version>
</dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<version>
20.0
</version>
</dependency>
<!-- Aapche Dubbo -->
<dependency>
<groupId>
org.apache.dubbo
</groupId>
...
...
@@ -183,36 +186,35 @@
</dependency>
<!--swagger-->
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<version>
2.9.2
</version>
<exclusions>
<exclusion>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-models
</artifactId>
</exclusion>
<exclusion>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
</exclusion>
</exclusions>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
swagger-bootstrap-ui
</artifactId>
<version>
1.9.3
</version>
</dependency>
<dependency>
<groupId>
io.s
wagger
</groupId>
<artifactId>
s
wagger-models
</artifactId>
<version>
1.5.22
</version>
<groupId>
io.s
pringfox
</groupId>
<artifactId>
s
pringfox-swagger2
</artifactId>
<version>
2.8.0
</version>
</dependency>
<dependency>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
s
wagger-bootstrap
-ui
</artifactId>
<version>
1.9.3
</version>
<groupId>
io.springfox
</groupId>
<artifactId>
s
pringfox-swagger
-ui
</artifactId>
<version>
2.8.0
</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.deepoove</groupId>-->
<!-- <artifactId>swagger-dubbo</artifactId>-->
<!-- <version>2.0.1</version>-->
<!-- </dependency>-->
<dependency>
<groupId>
com.deepoove
</groupId>
<artifactId>
swagger-dubbo
</artifactId>
<version>
2.0.1
</version>
<!-- Import dependency management from Spring Boot -->
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-dependencies
</artifactId>
<version>
2.1.5.RELEASE
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
...
...
@@ -260,4 +262,18 @@
</resource>
</resources>
</build>
<distributionManagement>
<snapshotRepository>
<id>
secoo-dev
</id>
<name>
Nexus Snapshot Repository
</name>
<url>
http://nexus.secoo.com:8081/nexus/content/groups/secoo-group-dev/
</url>
</snapshotRepository>
<repository>
<id>
decoo-pro
</id>
<name>
Nexus Release Repository
</name>
<url>
http://nexus.secoo.com:8081/nexus/content/groups/secoo-group-pro
</url>
</repository>
</distributionManagement>
</project>
\ No newline at end of file
web-starter/pom.xml
View file @
32bba4fd
...
...
@@ -20,6 +20,17 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
</dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger-ui
</artifactId>
</dependency>
<dependency>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
swagger-bootstrap-ui
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
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