1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

refactor directory tree

This commit is contained in:
亦盏 2018-09-06 16:32:06 +08:00
parent 7500068429
commit bfc04daf9b
35 changed files with 58 additions and 23 deletions

View File

@ -72,10 +72,9 @@
<modules> <modules>
<module>spring-cloud-alibaba-dependencies</module> <module>spring-cloud-alibaba-dependencies</module>
<module>spring-cloud-alibaba-sentinel-autoconfigure</module> <module>spring-cloud-alibaba-sentinel</module>
<module>spring-cloud-starter-sentinel</module> <module>spring-cloud-alibaba-storage</module>
<module>spring-cloud-alibaba-storage-autoconfigure</module> <module>spring-cloud-starter-alibaba</module>
<module>spring-cloud-starter-storage</module>
<module>spring-cloud-alibaba-examples</module> <module>spring-cloud-alibaba-examples</module>
</modules> </modules>

View File

@ -64,24 +64,24 @@
<!-- Own dependencies autoconfigure --> <!-- Own dependencies autoconfigure -->
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-sentinel-autoconfigure</artifactId> <artifactId>spring-cloud-alibaba-sentinel</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-storage-autoconfigure</artifactId> <artifactId>spring-cloud-alibaba-storage</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<!-- Own dependencies - Starters --> <!-- Own dependencies - Starters -->
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sentinel</artifactId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-storage</artifactId> <artifactId>spring-cloud-starter-alibaba-storage</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>

View File

@ -22,7 +22,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sentinel</artifactId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -17,7 +17,7 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sentinel</artifactId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency> </dependency>
2. 接入限流埋点 2. 接入限流埋点

View File

@ -12,11 +12,11 @@ This example illustrates how to use Sentinel starter to implement flow control f
Before we start the demo, let's learn how to connect Sentinel to a Spring Cloud application. Before we start the demo, let's learn how to connect Sentinel to a Spring Cloud application.
**Note: This section is to show you how to connect to Sentinel. The configurations have been completed in the following example, so you don't need modify the code any more.** **Note: This section is to show you how to connect to Sentinel. The configurations have been completed in the following example, so you don't need modify the code any more.**
1. Add dependency spring-cloud-starter-sentinel in the pom.xml file in your Spring Cloud project. 1. Add dependency spring-cloud-starter-alibaba-sentinel in the pom.xml file in your Spring Cloud project.
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sentinel</artifactId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency> </dependency>
2. Define Resources 2. Define Resources

View File

@ -22,7 +22,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-storage</artifactId> <artifactId>spring-cloud-starter-alibaba-storage</artifactId>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-sentinel-autoconfigure</artifactId> <artifactId>spring-cloud-alibaba-sentinel</artifactId>
<name>Spring Cloud Alibaba Sentinel Autoconfigure</name> <name>Spring Cloud Alibaba Sentinel Autoconfigure</name>
<dependencies> <dependencies>

View File

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-storage-autoconfigure</artifactId> <artifactId>spring-cloud-alibaba-storage</artifactId>
<name>Spring Cloud Alibaba Storage Autoconfigure</name> <name>Spring Cloud Alibaba Storage Autoconfigure</name>
<dependencies> <dependencies>

View File

@ -0,0 +1,36 @@
<?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>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba</artifactId>
<version>0.1.0.BUILD-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-cloud-starter-alibaba</artifactId>
<packaging>pom</packaging>
<name>Spring Cloud Alibaba Starters</name>
<description>Spring Cloud Alibaba Starters</description>
<modules>
<module>spring-cloud-starter-alibaba-sentinel</module>
<module>spring-cloud-starter-alibaba-storage</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -4,16 +4,16 @@
<parent> <parent>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba</artifactId> <artifactId>spring-cloud-starter-alibaba</artifactId>
<version>0.1.0.BUILD-SNAPSHOT</version> <version>0.1.0.BUILD-SNAPSHOT</version>
</parent> </parent>
<artifactId>spring-cloud-starter-sentinel</artifactId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
<name>Spring Cloud Starter Sentinel</name> <name>Spring Cloud Starter Alibaba Sentinel</name>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-sentinel-autoconfigure</artifactId> <artifactId>spring-cloud-alibaba-sentinel</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -4,16 +4,16 @@
<parent> <parent>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba</artifactId> <artifactId>spring-cloud-starter-alibaba</artifactId>
<version>0.1.0.BUILD-SNAPSHOT</version> <version>0.1.0.BUILD-SNAPSHOT</version>
</parent> </parent>
<artifactId>spring-cloud-starter-storage</artifactId> <artifactId>spring-cloud-starter-alibaba-storage</artifactId>
<name>Spring Cloud Starter Storage</name> <name>Spring Cloud Starter Alibaba Storage</name>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-storage-autoconfigure</artifactId> <artifactId>spring-cloud-alibaba-storage</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.aliyun.oss</groupId> <groupId>com.aliyun.oss</groupId>