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
14864d61
Commit
14864d61
authored
May 27, 2019
by
QIANGLU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化组织结构 新增cofig-start 模块
parent
24d417d6
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
119 additions
and
36 deletions
+119
-36
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
+49
-33
pom.xml
web-starter/pom.xml
+13
-1
No files found.
common-util/pom.xml
View file @
14864d61
...
@@ -30,8 +30,19 @@
...
@@ -30,8 +30,19 @@
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-core
</artifactId>
<artifactId>
common-core
</artifactId>
</dependency>
</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>
</dependencies>
...
...
common-util/src/main/java/com/secoo/mall/common/util/spring/SpringUtil.java
View file @
14864d61
...
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Component;
...
@@ -10,6 +10,7 @@ import org.springframework.stereotype.Component;
public
class
SpringUtil
implements
ApplicationContextAware
{
public
class
SpringUtil
implements
ApplicationContextAware
{
private
static
ApplicationContext
context
;
private
static
ApplicationContext
context
;
@Override
public
void
setApplicationContext
(
ApplicationContext
arg0
)
public
void
setApplicationContext
(
ApplicationContext
arg0
)
throws
BeansException
{
throws
BeansException
{
context
=
arg0
;
context
=
arg0
;
...
...
config-starter/pom.xml
0 → 100644
View file @
14864d61
<?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 @
14864d61
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 @
14864d61
config-starter/src/main/resources/META-INF/spring.factories
0 → 100755
View file @
14864d61
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.secoo.mall.config.configuration.ApolloAutoConfiguration
\ No newline at end of file
pom.xml
View file @
14864d61
...
@@ -22,13 +22,14 @@
...
@@ -22,13 +22,14 @@
<module>
openfeign-starter
</module>
<module>
openfeign-starter
</module>
<module>
monitor-starter
</module>
<module>
monitor-starter
</module>
<module>
rocketmq-starter
</module>
<module>
rocketmq-starter
</module>
<module>
config-starter
</module>
</modules>
</modules>
<parent>
<parent>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.1.4.RELEASE
</version>
<version>
2.1.4.RELEASE
</version>
<relativePath
/>
<relativePath/>
</parent>
</parent>
<properties>
<properties>
...
@@ -37,7 +38,6 @@
...
@@ -37,7 +38,6 @@
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
<dependencies>
<dependencies>
<dependency>
<dependency>
...
@@ -47,6 +47,11 @@
...
@@ -47,6 +47,11 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<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>
<artifactId>
common-util
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
0.1-SNAPSHOT
</version>
</dependency>
</dependency>
...
@@ -90,14 +95,7 @@
...
@@ -90,14 +95,7 @@
<artifactId>
openfeign-starter
</artifactId>
<artifactId>
openfeign-starter
</artifactId>
<version>
0.1-SNAPSHOT
</version>
<version>
0.1-SNAPSHOT
</version>
</dependency>
</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>
<dependency>
<groupId>
org.apache.commons
</groupId>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<artifactId>
commons-lang3
</artifactId>
...
@@ -155,7 +153,11 @@
...
@@ -155,7 +153,11 @@
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
5.1.47
</version>
<version>
5.1.47
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<version>
20.0
</version>
</dependency>
<!-- Aapche Dubbo -->
<!-- Aapche Dubbo -->
<dependency>
<dependency>
<groupId>
org.apache.dubbo
</groupId>
<groupId>
org.apache.dubbo
</groupId>
...
@@ -183,36 +185,35 @@
...
@@ -183,36 +185,35 @@
</dependency>
</dependency>
<!--swagger-->
<!--swagger-->
<dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<groupId>
com.github.xiaoymin
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<artifactId>
swagger-bootstrap-ui
</artifactId>
<version>
2.9.2
</version>
<version>
1.9.3
</version>
<exclusions>
<exclusion>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-models
</artifactId>
</exclusion>
<exclusion>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
io.s
wagger
</groupId>
<groupId>
io.s
pringfox
</groupId>
<artifactId>
s
wagger-models
</artifactId>
<artifactId>
s
pringfox-swagger2
</artifactId>
<version>
1.5.22
</version>
<version>
2.8.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.github.xiaoymin
</groupId>
<groupId>
io.springfox
</groupId>
<artifactId>
s
wagger-bootstrap
-ui
</artifactId>
<artifactId>
s
pringfox-swagger
-ui
</artifactId>
<version>
1.9.3
</version>
<version>
2.8.0
</version>
</dependency>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.deepoove</groupId>-->
<!-- <artifactId>swagger-dubbo</artifactId>-->
<!-- <version>2.0.1</version>-->
<!-- </dependency>-->
<dependency>
<dependency>
<groupId>
com.deepoove
</groupId>
<!-- Import dependency management from Spring Boot -->
<artifactId>
swagger-dubbo
</artifactId>
<groupId>
org.springframework.boot
</groupId>
<version>
2.0.1
</version>
<artifactId>
spring-boot-dependencies
</artifactId>
<version>
2.1.5.RELEASE
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
<build>
<build>
...
@@ -260,4 +261,18 @@
...
@@ -260,4 +261,18 @@
</resource>
</resource>
</resources>
</resources>
</build>
</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>
</project>
\ No newline at end of file
web-starter/pom.xml
View file @
14864d61
...
@@ -24,6 +24,17 @@
...
@@ -24,6 +24,17 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</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>
</dependencies>
</project>
</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