mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Polish alibaba/spring-cloud-alibaba#1369 : [Feature] Synchronizing source code to Spring Cloud Alibaba greenwich branch
This commit is contained in:
parent
4b6e1018cb
commit
0f05d78c37
2
mvnw
vendored
2
mvnw
vendored
@ -227,7 +227,7 @@ export MAVEN_CMD_LINE_ARGS
|
|||||||
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
||||||
|
|
||||||
echo "Running version check"
|
echo "Running version check"
|
||||||
VERSION=$( sed '\!<parent!,\!</parent!d' `dirname $0`/pom.xml | grep '<version' | head -1 | sed -e 's/.*<version>//' -e 's!</version>.*$!!' )
|
VERSION=$( sed '\!<parent!,\!</parent!d' `dirname $0`/pom.xml | grep '<revision' | head -1 | sed -e 's/.*<revision>//' -e 's!</revision>.*$!!' )
|
||||||
echo "The found version is [${VERSION}]"
|
echo "The found version is [${VERSION}]"
|
||||||
|
|
||||||
if echo $VERSION | egrep -q 'M|RC'; then
|
if echo $VERSION | egrep -q 'M|RC'; then
|
||||||
|
113
pom.xml
113
pom.xml
@ -8,17 +8,17 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-build</artifactId>
|
<artifactId>spring-cloud-build</artifactId>
|
||||||
<version>2.1.10.RELEASE</version>
|
<version>2.1.11.RELEASE</version>
|
||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Spring Cloud Alibaba</name>
|
<name>Spring Cloud Alibaba</name>
|
||||||
<description>Spring Cloud Alibaba</description>
|
<description>Spring Cloud Alibaba</description>
|
||||||
<url>https://github.com/alibaba/spring-cloud-alibaba</url>
|
<url>https://github.com/alibaba/spring-cloud-alibaba/tree/greenwich</url>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
@ -69,12 +69,22 @@
|
|||||||
<name>yunzheng</name>
|
<name>yunzheng</name>
|
||||||
<email>yunzheng1228@gmail.com</email>
|
<email>yunzheng1228@gmail.com</email>
|
||||||
</developer>
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<id>theonefx</id>
|
||||||
|
<name>theonefx</name>
|
||||||
|
<email>chenxilzx1@gmail.com</email>
|
||||||
|
<organization>Alibaba</organization>
|
||||||
|
<url>https://github.com/theonefx</url>
|
||||||
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<!-- Project revision -->
|
||||||
|
<revision>2.1.2.RELEASE</revision>
|
||||||
|
|
||||||
<!-- Dependency Versions -->
|
<!-- Dependency Versions -->
|
||||||
<spring-cloud-commons.version>2.1.5.RELEASE</spring-cloud-commons.version>
|
<spring-cloud-commons.version>2.1.5.RELEASE</spring-cloud-commons.version>
|
||||||
<spring-cloud-config.version>2.1.6.RELEASE</spring-cloud-config.version>
|
<spring-cloud-config.version>2.1.7.RELEASE</spring-cloud-config.version>
|
||||||
<spring-cloud-consul.version>2.1.5.RELEASE</spring-cloud-consul.version>
|
<spring-cloud-consul.version>2.1.5.RELEASE</spring-cloud-consul.version>
|
||||||
<spring-cloud-gateway.version>2.1.5.RELEASE</spring-cloud-gateway.version>
|
<spring-cloud-gateway.version>2.1.5.RELEASE</spring-cloud-gateway.version>
|
||||||
<spring-cloud-netflix.version>2.1.5.RELEASE</spring-cloud-netflix.version>
|
<spring-cloud-netflix.version>2.1.5.RELEASE</spring-cloud-netflix.version>
|
||||||
@ -88,7 +98,7 @@
|
|||||||
<slf4j-api.version>1.7.25</slf4j-api.version>
|
<slf4j-api.version>1.7.25</slf4j-api.version>
|
||||||
|
|
||||||
<!-- Apache Dubbo -->
|
<!-- Apache Dubbo -->
|
||||||
<dubbo.version>2.7.4.1</dubbo.version>
|
<dubbo.version>2.7.6</dubbo.version>
|
||||||
<curator.version>4.0.1</curator.version>
|
<curator.version>4.0.1</curator.version>
|
||||||
|
|
||||||
<!-- Apache RocketMQ -->
|
<!-- Apache RocketMQ -->
|
||||||
@ -100,6 +110,10 @@
|
|||||||
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
|
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
|
||||||
<gmavenplus-plugin.version>1.6</gmavenplus-plugin.version>
|
<gmavenplus-plugin.version>1.6</gmavenplus-plugin.version>
|
||||||
<jacoco.version>0.8.3</jacoco.version>
|
<jacoco.version>0.8.3</jacoco.version>
|
||||||
|
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
|
||||||
|
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
|
||||||
|
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
|
||||||
|
<flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
@ -304,7 +318,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- Checkstyle rules inherited from spring-cloud-build -->
|
<!-- Checkstyle rules inherited from spring-cloud-build -->
|
||||||
<suppressionsLocation>eclipse/checkstyle-suppressions.xml</suppressionsLocation>
|
<suppressionsLocation>${session.executionRootDirectory}/eclipse/checkstyle-suppressions.xml</suppressionsLocation>
|
||||||
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
||||||
<consoleOutput>true</consoleOutput>
|
<consoleOutput>true</consoleOutput>
|
||||||
<failsOnError>true</failsOnError>
|
<failsOnError>true</failsOnError>
|
||||||
@ -411,6 +425,93 @@
|
|||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<profile>
|
||||||
|
<id>release</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
<version>${maven-source-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar-no-fork</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>${maven-javadoc-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
|
<version>${maven-gpg-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>sign</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>flatten-maven-plugin</artifactId>
|
||||||
|
<version>${flatten-maven-plugin.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<updatePomFile>true</updatePomFile>
|
||||||
|
<flattenMode>resolveCiFriendliesOnly</flattenMode>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>flatten</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>flatten</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>flatten.clean</id>
|
||||||
|
<phase>clean</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>clean</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>sonatype-nexus-snapshots</id>
|
||||||
|
<name>Sonatype Nexus Snapshots</name>
|
||||||
|
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<repository>
|
||||||
|
<id>sonatype-nexus-staging</id>
|
||||||
|
<name>Nexus Release Repository</name>
|
||||||
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
|
</profile>
|
||||||
|
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -4,20 +4,23 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-cloud-dependencies-parent</artifactId>
|
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<version>2.2.0.RELEASE</version>
|
<artifactId>spring-cloud-dependencies-parent</artifactId>
|
||||||
|
<version>2.1.11.RELEASE</version>
|
||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Spring Cloud Alibaba Dependencies</name>
|
<name>Spring Cloud Alibaba Dependencies</name>
|
||||||
<description>Spring Cloud Alibaba Dependencies</description>
|
<description>Spring Cloud Alibaba Dependencies</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<!-- Project revision -->
|
||||||
|
<revision>2.1.2.RELEASE</revision>
|
||||||
|
|
||||||
<sentinel.version>1.7.1</sentinel.version>
|
<sentinel.version>1.7.1</sentinel.version>
|
||||||
<oss.version>3.1.0</oss.version>
|
<oss.version>3.1.0</oss.version>
|
||||||
<seata.version>1.1.0</seata.version>
|
<seata.version>1.1.0</seata.version>
|
||||||
@ -32,7 +35,13 @@
|
|||||||
<aliyun.java.sdk.dysmsapi>1.1.0</aliyun.java.sdk.dysmsapi>
|
<aliyun.java.sdk.dysmsapi>1.1.0</aliyun.java.sdk.dysmsapi>
|
||||||
<aliyun.sdk.mns>1.1.8.6</aliyun.sdk.mns>
|
<aliyun.sdk.mns>1.1.8.6</aliyun.sdk.mns>
|
||||||
<aliyun.java.sdk.dyvmsapi>1.1.1</aliyun.java.sdk.dyvmsapi>
|
<aliyun.java.sdk.dyvmsapi>1.1.1</aliyun.java.sdk.dyvmsapi>
|
||||||
<spring.context.support.version>1.0.5</spring.context.support.version>
|
<spring.context.support.version>1.0.6</spring.context.support.version>
|
||||||
|
|
||||||
|
<!-- Maven Plugin Versions -->
|
||||||
|
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
|
||||||
|
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
|
||||||
|
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
|
||||||
|
<flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
@ -93,6 +102,12 @@
|
|||||||
<version>${sentinel.version}</version>
|
<version>${sentinel.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.csp</groupId>
|
||||||
|
<artifactId>sentinel-datasource-consul</artifactId>
|
||||||
|
<version>${sentinel.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.csp</groupId>
|
<groupId>com.alibaba.csp</groupId>
|
||||||
<artifactId>sentinel-web-servlet</artifactId>
|
<artifactId>sentinel-web-servlet</artifactId>
|
||||||
@ -318,5 +333,91 @@
|
|||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<profile>
|
||||||
|
<id>release</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
<version>${maven-source-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar-no-fork</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>${maven-javadoc-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
|
<version>${maven-gpg-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>sign</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>flatten-maven-plugin</artifactId>
|
||||||
|
<version>${flatten-maven-plugin.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<updatePomFile>true</updatePomFile>
|
||||||
|
<flattenMode>resolveCiFriendliesOnly</flattenMode>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>flatten</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>flatten</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>flatten.clean</id>
|
||||||
|
<phase>clean</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>clean</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>sonatype-nexus-snapshots</id>
|
||||||
|
<name>Sonatype Nexus Snapshots</name>
|
||||||
|
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
<repository>
|
||||||
|
<id>sonatype-nexus-staging</id>
|
||||||
|
<name>Nexus Release Repository</name>
|
||||||
|
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ Spring Cloud Alibaba BOM 包含了它所使用的所有依赖的版本。
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>2.1.2.RELEASE</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -8,7 +8,7 @@ If you’re a Maven Central user, add our BOM to your pom.xml <dependencyManagem
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>2.1.2.RELEASE</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-config-example</artifactId>
|
<artifactId>nacos-config-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Config Example</name>
|
||||||
<description>Example demonstrating how to use nacos config</description>
|
<description>Example demonstrating how to use nacos config</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>nacos-discovery-example</artifactId>
|
<artifactId>nacos-discovery-example</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-discovery-consumer-example</artifactId>
|
<artifactId>nacos-discovery-consumer-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery Consumer Example</name>
|
||||||
<description>Example demonstrating how to use nacos discovery</description>
|
<description>Example demonstrating how to use nacos discovery</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,15 +5,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>nacos-discovery-example</artifactId>
|
<artifactId>nacos-discovery-example</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-discovery-provider-example</artifactId>
|
<artifactId>nacos-discovery-provider-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery Provider Example</name>
|
||||||
<description>Example demonstrating how to use nacos discovery</description>
|
<description>Example demonstrating how to use nacos discovery</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,15 +5,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>nacos-discovery-example</artifactId>
|
<artifactId>nacos-discovery-example</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-discovery-spring-cloud-config-client-example</artifactId>
|
<artifactId>nacos-discovery-spring-cloud-config-client-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery x Config Client Example</name>
|
||||||
<description>Example demonstrating how to use nacos discovery</description>
|
<description>Example demonstrating how to use nacos discovery</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,15 +5,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>nacos-discovery-example</artifactId>
|
<artifactId>nacos-discovery-example</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-discovery-spring-cloud-config-server-example</artifactId>
|
<artifactId>nacos-discovery-spring-cloud-config-server-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery x Config Server Example</name>
|
||||||
<description>Example demonstrating how to use nacos discovery</description>
|
<description>Example demonstrating how to use nacos discovery</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-discovery-example</artifactId>
|
<artifactId>nacos-discovery-example</artifactId>
|
||||||
<packaging>pom</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery Examples</name>
|
||||||
<description>Example demonstrating how to use nacos discovery</description>
|
<description>Example demonstrating how to use nacos discovery</description>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>nacos-discovery-consumer-example</module>
|
<module>nacos-discovery-consumer-example</module>
|
||||||
|
@ -5,15 +5,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>nacos-gateway-example</artifactId>
|
<artifactId>nacos-gateway-example</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-gateway-discovery-example</artifactId>
|
<artifactId>nacos-gateway-discovery-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery x Gateway Example</name>
|
||||||
<description>Example demonstrating how to use gateway with nacos</description>
|
<description>Example demonstrating how to use gateway with nacos</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,15 +5,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>nacos-gateway-example</artifactId>
|
<artifactId>nacos-gateway-example</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-gateway-provider-example</artifactId>
|
<artifactId>nacos-gateway-provider-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery x Gateway - Provider Example</name>
|
||||||
<description>Example demonstrating how to use gateway with nacos</description>
|
<description>Example demonstrating how to use gateway with nacos</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>nacos-gateway-example</artifactId>
|
<artifactId>nacos-gateway-example</artifactId>
|
||||||
<packaging>pom</packaging>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery x Gateway Examples</name>
|
||||||
<description>Example demonstrating how to use gateway with nacos</description>
|
<description>Example demonstrating how to use gateway with nacos</description>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>nacos-gateway-discovery-example</module>
|
<module>nacos-gateway-discovery-example</module>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>rocketmq-consume-example</artifactId>
|
<artifactId>rocketmq-consume-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Stream Alibaba RocketMQ Consume Example</name>
|
||||||
<description>Example demonstrating how to use rocketmq consume</description>
|
<description>Example demonstrating how to use rocketmq consume</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>rocketmq-produce-example</artifactId>
|
<artifactId>rocketmq-produce-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Stream Alibaba RocketMQ Produce Example</name>
|
||||||
<description>Example demonstrating how to use rocketmq produce</description>
|
<description>Example demonstrating how to use rocketmq produce</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,12 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>account-service</artifactId>
|
<artifactId>account-service</artifactId>
|
||||||
|
|
||||||
|
<name>Spring Cloud Starter Alibaba Seata Example - Account Service</name>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
@ -5,12 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>business-service</artifactId>
|
<artifactId>business-service</artifactId>
|
||||||
|
|
||||||
|
<name>Spring Cloud Starter Alibaba Seata Example - Business Service</name>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
@ -5,12 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>order-service</artifactId>
|
<artifactId>order-service</artifactId>
|
||||||
|
|
||||||
|
<name>Spring Cloud Starter Alibaba Seata Example - Business Service</name>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>storage-service</artifactId>
|
<artifactId>storage-service</artifactId>
|
||||||
|
<name>Spring Cloud Starter Alibaba Seata Example - Storage Service</name>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>sentinel-core-example</artifactId>
|
<artifactId>sentinel-core-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel Core Example</name>
|
||||||
<description>Example demonstrating how to use sentinel</description>
|
<description>Example demonstrating how to use sentinel</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -5,14 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>sentinel-dubbo-api</artifactId>
|
<artifactId>sentinel-dubbo-api</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel x Dubbo - API</name>
|
||||||
<description>api for sentinel dubbo example</description>
|
<description>api for sentinel dubbo example</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>sentinel-dubbo-consumer-example</artifactId>
|
<artifactId>sentinel-dubbo-consumer-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel x Dubbo - Consumer Example</name>
|
||||||
<description>Example demonstrating how to use sentinel with dubbo</description>
|
<description>Example demonstrating how to use sentinel with dubbo</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
@ -31,7 +30,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>sentinel-dubbo-api</artifactId>
|
<artifactId>sentinel-dubbo-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>sentinel-dubbo-provider-example</artifactId>
|
<artifactId>sentinel-dubbo-provider-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel x Dubbo - Provider Example</name>
|
||||||
<description>Example demonstrating how to use sentinel with dubbo</description>
|
<description>Example demonstrating how to use sentinel with dubbo</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
@ -31,7 +30,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>sentinel-dubbo-api</artifactId>
|
<artifactId>sentinel-dubbo-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>sentinel-feign-consumer-example</artifactId>
|
<artifactId>sentinel-feign-consumer-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel x Feign - Consumer Example</name>
|
||||||
<description>Example demonstrating how to use sentinel with feign</description>
|
<description>Example demonstrating how to use sentinel with feign</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -6,6 +6,8 @@ spring:
|
|||||||
name: service-consumer
|
name: service-consumer
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 127.0.0.1:8848
|
server-addr: 127.0.0.1:8848
|
||||||
|
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>sentinel-feign-provider-example</artifactId>
|
<artifactId>sentinel-feign-provider-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel x Feign - Provider Example</name>
|
||||||
<description>Example demonstrating how to use sentinel with feign</description>
|
<description>Example demonstrating how to use sentinel with feign</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -6,6 +6,8 @@ spring:
|
|||||||
name: service-provider
|
name: service-provider
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 127.0.0.1:8848
|
server-addr: 127.0.0.1:8848
|
||||||
|
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>sentinel-spring-cloud-gateway-example</artifactId>
|
<artifactId>sentinel-spring-cloud-gateway-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel x Gateway Example</name>
|
||||||
<description>Example demonstrating how to use sentinel with spring cloud gateway</description>
|
<description>Example demonstrating how to use sentinel with spring cloud gateway</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -5,16 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>sentinel-webflux-example</artifactId>
|
<artifactId>sentinel-webflux-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel x WebFlux Example</name>
|
||||||
<description>Example demonstrating how to use sentinel with webflux</description>
|
<description>Example demonstrating how to use sentinel with webflux</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
||||||
<artifactId>sentinel-zuul-example</artifactId>
|
<artifactId>sentinel-zuul-example</artifactId>
|
||||||
<packaging>jar</packaging>
|
<name>Spring Cloud Starter Alibaba Sentinel x Zuul Example</name>
|
||||||
<description>Example demonstrating how to use sentinel with zuul</description>
|
<description>Example demonstrating how to use sentinel with zuul</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<name>Spring Cloud Alibaba Dubbo Examples</name>
|
<name>Spring Cloud Alibaba Dubbo Examples</name>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
@ -13,14 +13,14 @@
|
|||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-dubbo-client-sample</artifactId>
|
<artifactId>spring-cloud-dubbo-client-sample</artifactId>
|
||||||
<name>Spring Cloud Dubbo Client Sample</name>
|
<name>Spring Cloud Dubbo Client Sample</name>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Sample API -->
|
<!-- Sample API -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Spring Boot dependencies -->
|
<!-- Spring Boot dependencies -->
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
dubbo:
|
dubbo:
|
||||||
registry:
|
|
||||||
address: spring-cloud://localhost
|
|
||||||
cloud:
|
cloud:
|
||||||
subscribed-services: spring-cloud-alibaba-dubbo-server
|
subscribed-services: spring-cloud-alibaba-dubbo-server
|
||||||
|
|
||||||
@ -11,5 +9,7 @@ spring:
|
|||||||
allow-bean-definition-overriding: true
|
allow-bean-definition-overriding: true
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 127.0.0.1:8848
|
server-addr: 127.0.0.1:8848
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Dubbo Spring Cloud Starter -->
|
<!-- Dubbo Spring Cloud Starter -->
|
||||||
|
@ -30,6 +30,8 @@ spring:
|
|||||||
|
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
enabled: true
|
enabled: true
|
||||||
register-enabled: true
|
register-enabled: true
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Dubbo Spring Cloud Starter -->
|
<!-- Dubbo Spring Cloud Starter -->
|
||||||
|
@ -27,6 +27,8 @@ spring:
|
|||||||
|
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
enabled: true
|
enabled: true
|
||||||
register-enabled: true
|
register-enabled: true
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
@ -30,7 +30,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Dubbo Spring Cloud Starter -->
|
<!-- Dubbo Spring Cloud Starter -->
|
||||||
|
@ -27,6 +27,8 @@ spring:
|
|||||||
|
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
enabled: true
|
enabled: true
|
||||||
register-enabled: true
|
register-enabled: true
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
@ -14,7 +14,7 @@
|
|||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-dubbo-server-sample</artifactId>
|
<artifactId>spring-cloud-dubbo-server-sample</artifactId>
|
||||||
<name>Spring Cloud Dubbo Server Sample</name>
|
<name>Spring Cloud Dubbo Server Sample</name>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Spring Boot dependencies -->
|
<!-- Spring Boot dependencies -->
|
||||||
|
@ -4,8 +4,6 @@ dubbo:
|
|||||||
protocol:
|
protocol:
|
||||||
name: dubbo
|
name: dubbo
|
||||||
port: -1
|
port: -1
|
||||||
registry:
|
|
||||||
address: spring-cloud://localhost
|
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
@ -14,5 +12,7 @@ spring:
|
|||||||
allow-bean-definition-overriding: true
|
allow-bean-definition-overriding: true
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 127.0.0.1:8848
|
server-addr: 127.0.0.1:8848
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-dubbo-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
<artifactId>spring-cloud-dubbo-sample-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Dubbo Spring Cloud Starter -->
|
<!-- Dubbo Spring Cloud Starter -->
|
||||||
|
@ -30,6 +30,8 @@ spring:
|
|||||||
|
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
enabled: true
|
enabled: true
|
||||||
register-enabled: true
|
register-enabled: true
|
||||||
|
@ -4,13 +4,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>spring-cloud-alibaba-sidecar-consul-example</artifactId>
|
<artifactId>spring-cloud-alibaba-sidecar-consul-example</artifactId>
|
||||||
|
<name>Spring Cloud Starter Alibaba Sidecar x Consul Example</name>
|
||||||
<description>Example demonstrating how to use Spring Cloud Alibaba Sidecar with consul</description>
|
<description>Example demonstrating how to use Spring Cloud Alibaba Sidecar with consul</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -4,13 +4,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>spring-cloud-alibaba-sidecar-nacos-example</artifactId>
|
<artifactId>spring-cloud-alibaba-sidecar-nacos-example</artifactId>
|
||||||
|
<name>Spring Cloud Starter Alibaba Sidecar x Nacos Example</name>
|
||||||
<description>Example demonstrating how to use Spring Cloud Alibaba Sidecar with nacos</description>
|
<description>Example demonstrating how to use Spring Cloud Alibaba Sidecar with nacos</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@ server:
|
|||||||
spring:
|
spring:
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: localhost:8848
|
server-addr: localhost:8848
|
||||||
gateway:
|
gateway:
|
||||||
|
@ -5,13 +5,15 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>spring-cloud-bus-rocketmq-example</artifactId>
|
<artifactId>spring-cloud-bus-rocketmq-example</artifactId>
|
||||||
<name>Spring Cloud Bus RocketMQ Example</name>
|
<name>Spring Cloud Starter Bus Alibaba RocketMQ Example</name>
|
||||||
|
<description>Example demonstrating how to use Spring Cloud Bus RocketMQ</description>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
@ -83,6 +83,12 @@
|
|||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.csp</groupId>
|
||||||
|
<artifactId>sentinel-datasource-consul</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
<artifactId>jackson-databind</artifactId>
|
<artifactId>jackson-databind</artifactId>
|
||||||
|
@ -0,0 +1,97 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2013-2018 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.alibaba.cloud.sentinel.datasource.config;
|
||||||
|
|
||||||
|
import com.alibaba.cloud.sentinel.datasource.factorybean.ConsulDataSourceFactoryBean;
|
||||||
|
|
||||||
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Consul Properties class Using by {@link DataSourcePropertiesConfiguration} and
|
||||||
|
* {@link ConsulDataSourceFactoryBean}.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:mengjindc@gmail.com">mengjin</a>
|
||||||
|
*/
|
||||||
|
public class ConsulDataSourceProperties extends AbstractDataSourceProperties {
|
||||||
|
|
||||||
|
public ConsulDataSourceProperties() {
|
||||||
|
super(ConsulDataSourceFactoryBean.class.getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* consul server host.
|
||||||
|
*/
|
||||||
|
private String host;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* consul server port.
|
||||||
|
*/
|
||||||
|
private int port = 8500;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* data key in Redis.
|
||||||
|
*/
|
||||||
|
private String ruleKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Request of query will hang until timeout (in second) or get updated value.
|
||||||
|
*/
|
||||||
|
private int waitTimeoutInSecond = 1;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void preCheck(String dataSourceName) {
|
||||||
|
if (StringUtils.isEmpty(host)) {
|
||||||
|
throw new IllegalArgumentException("ConsulDataSource server-host is empty");
|
||||||
|
}
|
||||||
|
if (StringUtils.isEmpty(ruleKey)) {
|
||||||
|
throw new IllegalArgumentException(
|
||||||
|
"ConsulDataSource ruleKey can not be empty");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHost() {
|
||||||
|
return host;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHost(String host) {
|
||||||
|
this.host = host;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPort() {
|
||||||
|
return port;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPort(int port) {
|
||||||
|
this.port = port;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRuleKey() {
|
||||||
|
return ruleKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRuleKey(String ruleKey) {
|
||||||
|
this.ruleKey = ruleKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getWaitTimeoutInSecond() {
|
||||||
|
return waitTimeoutInSecond;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWaitTimeoutInSecond(int waitTimeoutInSecond) {
|
||||||
|
this.waitTimeoutInSecond = waitTimeoutInSecond;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2013-2018 the original author or authors.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.alibaba.cloud.sentinel.datasource.factorybean;
|
||||||
|
|
||||||
|
import com.alibaba.csp.sentinel.datasource.Converter;
|
||||||
|
import com.alibaba.csp.sentinel.datasource.consul.ConsulDataSource;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.FactoryBean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A {@link FactoryBean} for creating {@link ConsulDataSource} instance.
|
||||||
|
*
|
||||||
|
* @author <a href="mailto:mengjindc@gmail.com">mengjin</a>
|
||||||
|
* @see ConsulDataSource
|
||||||
|
*/
|
||||||
|
public class ConsulDataSourceFactoryBean implements FactoryBean<ConsulDataSource> {
|
||||||
|
|
||||||
|
private String host;
|
||||||
|
|
||||||
|
private int port;
|
||||||
|
|
||||||
|
private String ruleKey;
|
||||||
|
|
||||||
|
private int waitTimeoutInSecond;
|
||||||
|
|
||||||
|
private Converter converter;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConsulDataSource getObject() throws Exception {
|
||||||
|
return new ConsulDataSource(host, port, ruleKey, waitTimeoutInSecond, converter);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Class<?> getObjectType() {
|
||||||
|
return ConsulDataSource.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHost() {
|
||||||
|
return host;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHost(String host) {
|
||||||
|
this.host = host;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPort() {
|
||||||
|
return port;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPort(int port) {
|
||||||
|
this.port = port;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRuleKey() {
|
||||||
|
return ruleKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRuleKey(String ruleKey) {
|
||||||
|
this.ruleKey = ruleKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getWaitTimeoutInSecond() {
|
||||||
|
return waitTimeoutInSecond;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWaitTimeoutInSecond(int waitTimeoutInSecond) {
|
||||||
|
this.waitTimeoutInSecond = waitTimeoutInSecond;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Converter getConverter() {
|
||||||
|
return converter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setConverter(Converter converter) {
|
||||||
|
this.converter = converter;
|
||||||
|
}
|
||||||
|
}
|
@ -3,3 +3,4 @@ file =com.alibaba.csp.sentinel.datasource.FileRefreshableDataSource
|
|||||||
apollo = com.alibaba.csp.sentinel.datasource.apollo.ApolloDataSource
|
apollo = com.alibaba.csp.sentinel.datasource.apollo.ApolloDataSource
|
||||||
zk = com.alibaba.csp.sentinel.datasource.zookeeper.ZookeeperDataSource
|
zk = com.alibaba.csp.sentinel.datasource.zookeeper.ZookeeperDataSource
|
||||||
redis = com.alibaba.csp.sentinel.datasource.redis.RedisDataSource
|
redis = com.alibaba.csp.sentinel.datasource.redis.RedisDataSource
|
||||||
|
consul = com.alibaba.csp.sentinel.datasource.consul.ConsulDataSource
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -16,23 +16,104 @@
|
|||||||
|
|
||||||
package com.alibaba.cloud.seata.feign.hystrix;
|
package com.alibaba.cloud.seata.feign.hystrix;
|
||||||
|
|
||||||
|
import java.util.concurrent.BlockingQueue;
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
|
import java.util.concurrent.ThreadPoolExecutor;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import com.netflix.hystrix.HystrixThreadPoolKey;
|
||||||
|
import com.netflix.hystrix.HystrixThreadPoolProperties;
|
||||||
import com.netflix.hystrix.strategy.HystrixPlugins;
|
import com.netflix.hystrix.strategy.HystrixPlugins;
|
||||||
import com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy;
|
import com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy;
|
||||||
|
import com.netflix.hystrix.strategy.concurrency.HystrixRequestVariable;
|
||||||
|
import com.netflix.hystrix.strategy.concurrency.HystrixRequestVariableLifecycle;
|
||||||
|
import com.netflix.hystrix.strategy.eventnotifier.HystrixEventNotifier;
|
||||||
|
import com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHook;
|
||||||
|
import com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisher;
|
||||||
|
import com.netflix.hystrix.strategy.properties.HystrixPropertiesStrategy;
|
||||||
|
import com.netflix.hystrix.strategy.properties.HystrixProperty;
|
||||||
import io.seata.core.context.RootContext;
|
import io.seata.core.context.RootContext;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import org.springframework.web.context.request.RequestAttributes;
|
||||||
|
import org.springframework.web.context.request.RequestContextHolder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xiaojing
|
* @author xiaojing
|
||||||
*/
|
*/
|
||||||
public class SeataHystrixConcurrencyStrategy extends HystrixConcurrencyStrategy {
|
public class SeataHystrixConcurrencyStrategy extends HystrixConcurrencyStrategy {
|
||||||
|
|
||||||
|
private final Logger logger = LoggerFactory
|
||||||
|
.getLogger(SeataHystrixConcurrencyStrategy.class);
|
||||||
private HystrixConcurrencyStrategy delegate;
|
private HystrixConcurrencyStrategy delegate;
|
||||||
|
|
||||||
public SeataHystrixConcurrencyStrategy() {
|
public SeataHystrixConcurrencyStrategy() {
|
||||||
|
try {
|
||||||
this.delegate = HystrixPlugins.getInstance().getConcurrencyStrategy();
|
this.delegate = HystrixPlugins.getInstance().getConcurrencyStrategy();
|
||||||
|
if (this.delegate instanceof SeataHystrixConcurrencyStrategy) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
HystrixCommandExecutionHook commandExecutionHook = HystrixPlugins
|
||||||
|
.getInstance().getCommandExecutionHook();
|
||||||
|
HystrixEventNotifier eventNotifier = HystrixPlugins.getInstance()
|
||||||
|
.getEventNotifier();
|
||||||
|
HystrixMetricsPublisher metricsPublisher = HystrixPlugins.getInstance()
|
||||||
|
.getMetricsPublisher();
|
||||||
|
HystrixPropertiesStrategy propertiesStrategy = HystrixPlugins.getInstance()
|
||||||
|
.getPropertiesStrategy();
|
||||||
|
logCurrentStateOfHystrixPlugins(eventNotifier, metricsPublisher,
|
||||||
|
propertiesStrategy);
|
||||||
HystrixPlugins.reset();
|
HystrixPlugins.reset();
|
||||||
HystrixPlugins.getInstance().registerConcurrencyStrategy(this);
|
HystrixPlugins.getInstance().registerConcurrencyStrategy(this);
|
||||||
|
HystrixPlugins.getInstance()
|
||||||
|
.registerCommandExecutionHook(commandExecutionHook);
|
||||||
|
HystrixPlugins.getInstance().registerEventNotifier(eventNotifier);
|
||||||
|
HystrixPlugins.getInstance().registerMetricsPublisher(metricsPublisher);
|
||||||
|
HystrixPlugins.getInstance().registerPropertiesStrategy(propertiesStrategy);
|
||||||
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
|
logger.error("Failed to register Seata Hystrix Concurrency Strategy", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void logCurrentStateOfHystrixPlugins(HystrixEventNotifier eventNotifier,
|
||||||
|
HystrixMetricsPublisher metricsPublisher,
|
||||||
|
HystrixPropertiesStrategy propertiesStrategy) {
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("Current Hystrix plugins configuration is ["
|
||||||
|
+ "concurrencyStrategy [" + this.delegate + "]," + "eventNotifier ["
|
||||||
|
+ eventNotifier + "]," + "metricPublisher [" + metricsPublisher + "],"
|
||||||
|
+ "propertiesStrategy [" + propertiesStrategy + "]," + "]");
|
||||||
|
logger.debug("Registering Seata Hystrix Concurrency Strategy.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ThreadPoolExecutor getThreadPool(HystrixThreadPoolKey threadPoolKey,
|
||||||
|
HystrixProperty<Integer> corePoolSize,
|
||||||
|
HystrixProperty<Integer> maximumPoolSize,
|
||||||
|
HystrixProperty<Integer> keepAliveTime, TimeUnit unit,
|
||||||
|
BlockingQueue<Runnable> workQueue) {
|
||||||
|
return this.delegate.getThreadPool(threadPoolKey, corePoolSize, maximumPoolSize,
|
||||||
|
keepAliveTime, unit, workQueue);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ThreadPoolExecutor getThreadPool(HystrixThreadPoolKey threadPoolKey,
|
||||||
|
HystrixThreadPoolProperties threadPoolProperties) {
|
||||||
|
return this.delegate.getThreadPool(threadPoolKey, threadPoolProperties);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BlockingQueue<Runnable> getBlockingQueue(int maxQueueSize) {
|
||||||
|
return this.delegate.getBlockingQueue(maxQueueSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public <T> HystrixRequestVariable<T> getRequestVariable(
|
||||||
|
HystrixRequestVariableLifecycle<T> rv) {
|
||||||
|
return this.delegate.getRequestVariable(rv);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -52,7 +133,8 @@ public class SeataHystrixConcurrencyStrategy extends HystrixConcurrencyStrategy
|
|||||||
return wrappedCallable;
|
return wrappedCallable;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new SeataContextCallable<>(wrappedCallable);
|
return new SeataContextCallable<>(wrappedCallable,
|
||||||
|
RequestContextHolder.getRequestAttributes());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class SeataContextCallable<K> implements Callable<K> {
|
private static class SeataContextCallable<K> implements Callable<K> {
|
||||||
@ -61,19 +143,24 @@ public class SeataHystrixConcurrencyStrategy extends HystrixConcurrencyStrategy
|
|||||||
|
|
||||||
private final String xid;
|
private final String xid;
|
||||||
|
|
||||||
SeataContextCallable(Callable<K> actual) {
|
private final RequestAttributes requestAttributes;
|
||||||
|
|
||||||
|
SeataContextCallable(Callable<K> actual, RequestAttributes requestAttribute) {
|
||||||
this.actual = actual;
|
this.actual = actual;
|
||||||
|
this.requestAttributes = requestAttribute;
|
||||||
this.xid = RootContext.getXID();
|
this.xid = RootContext.getXID();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public K call() throws Exception {
|
public K call() throws Exception {
|
||||||
try {
|
try {
|
||||||
|
RequestContextHolder.setRequestAttributes(requestAttributes);
|
||||||
RootContext.bind(xid);
|
RootContext.bind(xid);
|
||||||
return actual.call();
|
return actual.call();
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
RootContext.unbind();
|
RootContext.unbind();
|
||||||
|
RequestContextHolder.resetRequestAttributes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ public class SentinelHealthIndicator extends AbstractHealthIndicator {
|
|||||||
// detail
|
// detail
|
||||||
if (!sentinelProperties.isEnabled()) {
|
if (!sentinelProperties.isEnabled()) {
|
||||||
detailMap.put("enabled", false);
|
detailMap.put("enabled", false);
|
||||||
builder.up().withDetails(detailMap);
|
withDetails(builder.up(), detailMap);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,11 +139,16 @@ public class SentinelHealthIndicator extends AbstractHealthIndicator {
|
|||||||
|
|
||||||
// If Dashboard and DataSource are both OK, the health status is UP
|
// If Dashboard and DataSource are both OK, the health status is UP
|
||||||
if (dashboardUp && dataSourceUp) {
|
if (dashboardUp && dataSourceUp) {
|
||||||
builder.up().withDetails(detailMap);
|
withDetails(builder.up(), detailMap);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
builder.down().withDetails(detailMap);
|
withDetails(builder.down(), detailMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void withDetails(Health.Builder builder, Map<String, Object> detailMap) {
|
||||||
|
for (String key : detailMap.keySet()) {
|
||||||
|
builder.withDetail(key, detailMap.get(key));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
|||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.springframework.web.client.RestTemplate;
|
import org.springframework.web.client.RestTemplate;
|
||||||
|
|
||||||
import static org.apache.dubbo.rpc.cluster.Constants.DEFAULT_RETRIES;
|
import static org.apache.dubbo.common.constants.CommonConstants.DEFAULT_RETRIES;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link DubboTransported @DubboTransported} annotation indicates that the traditional
|
* {@link DubboTransported @DubboTransported} annotation indicates that the traditional
|
||||||
|
@ -29,7 +29,7 @@ import org.springframework.core.type.AnnotatedTypeMetadata;
|
|||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
import static com.alibaba.cloud.dubbo.registry.SpringCloudRegistryFactory.PROTOCOL;
|
import static com.alibaba.cloud.dubbo.registry.SpringCloudRegistryFactory.PROTOCOL;
|
||||||
import static org.apache.dubbo.config.spring.util.PropertySourcesUtils.getPrefixedProperties;
|
import static com.alibaba.spring.util.PropertySourcesUtils.getSubProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Missing {@link SpringCloudRegistry} Property {@link Condition}.
|
* Missing {@link SpringCloudRegistry} Property {@link Condition}.
|
||||||
@ -61,7 +61,7 @@ public class MissingSpringCloudRegistryConfigPropertyCondition
|
|||||||
"'spring-cloud' protocol was found from 'dubbo.registry.address'");
|
"'spring-cloud' protocol was found from 'dubbo.registry.address'");
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, Object> properties = getPrefixedProperties(
|
Map<String, Object> properties = getSubProperties(
|
||||||
environment.getPropertySources(), "dubbo.registries.");
|
environment.getPropertySources(), "dubbo.registries.");
|
||||||
|
|
||||||
boolean found = properties.entrySet().stream().anyMatch(entry -> {
|
boolean found = properties.entrySet().stream().anyMatch(entry -> {
|
||||||
|
@ -35,7 +35,7 @@ import org.springframework.util.CollectionUtils;
|
|||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
import static org.apache.dubbo.common.constants.CommonConstants.DEFAULT_PROTOCOL;
|
import static org.apache.dubbo.common.constants.CommonConstants.DEFAULT_PROTOCOL;
|
||||||
import static org.apache.dubbo.config.spring.util.PropertySourcesUtils.getPrefixedProperties;
|
import static com.alibaba.spring.util.PropertySourcesUtils.getSubProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dubbo {@link WebApplicationType#NONE Non-Web Application}
|
* Dubbo {@link WebApplicationType#NONE Non-Web Application}
|
||||||
@ -149,7 +149,7 @@ public class DubboNonWebApplicationEnvironmentPostProcessor
|
|||||||
|
|
||||||
String restPort = null;
|
String restPort = null;
|
||||||
|
|
||||||
Map<String, Object> subProperties = getPrefixedProperties(
|
Map<String, Object> subProperties = getSubProperties(
|
||||||
environment.getPropertySources(), PROTOCOLS_PROPERTY_NAME_PREFIX);
|
environment.getPropertySources(), PROTOCOLS_PROPERTY_NAME_PREFIX);
|
||||||
|
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
|
@ -22,6 +22,7 @@ import java.util.LinkedHashSet;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.Optional;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
@ -289,10 +290,12 @@ public class DubboServiceMetadataRepository
|
|||||||
serviceName);
|
serviceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
initSubscribedDubboMetadataService(serviceName);
|
if (initSubscribedDubboMetadataService(serviceName)) {
|
||||||
// mark this service name having been initialized
|
// mark this service name having been initialized
|
||||||
initializedServices.add(serviceName);
|
initializedServices.add(serviceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -300,12 +303,19 @@ public class DubboServiceMetadataRepository
|
|||||||
* Remove the metadata and initialized service of Dubbo Services if no there is no
|
* Remove the metadata and initialized service of Dubbo Services if no there is no
|
||||||
* service instance.
|
* service instance.
|
||||||
* @param serviceName the service name
|
* @param serviceName the service name
|
||||||
|
* @param url the meta service url
|
||||||
*/
|
*/
|
||||||
public void removeMetadataAndInitializedService(String serviceName) {
|
public void removeMetadataAndInitializedService(String serviceName, URL url) {
|
||||||
synchronized (monitor) {
|
synchronized (monitor) {
|
||||||
initializedServices.remove(serviceName);
|
initializedServices.remove(serviceName);
|
||||||
dubboRestServiceMetadataRepository.remove(serviceName);
|
dubboRestServiceMetadataRepository.remove(serviceName);
|
||||||
subscribedDubboMetadataServiceURLs.remove(serviceName);
|
// fix #1260 if the subscribedDubboMetadataServiceURLs removed fail,old meta
|
||||||
|
// information will be retained
|
||||||
|
if (DubboMetadataService.class.getName().equals(url.getServiceInterface())) {
|
||||||
|
String serviceKey = url.getServiceKey();
|
||||||
|
subscribedDubboMetadataServiceURLs.remove(serviceKey);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -393,9 +403,11 @@ public class DubboServiceMetadataRepository
|
|||||||
return emptyList();
|
return emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
return hasText(protocol) ? urls.stream()
|
return hasText(protocol)
|
||||||
|
? urls.stream()
|
||||||
.filter(url -> url.getProtocol().equalsIgnoreCase(protocol))
|
.filter(url -> url.getProtocol().equalsIgnoreCase(protocol))
|
||||||
.collect(Collectors.toList()) : unmodifiableList(urls);
|
.collect(Collectors.toList())
|
||||||
|
: unmodifiableList(urls);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -614,24 +626,47 @@ public class DubboServiceMetadataRepository
|
|||||||
subscribedServices.remove(currentApplicationName);
|
subscribedServices.remove(currentApplicationName);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void initSubscribedDubboMetadataService(String serviceName) {
|
protected Boolean initSubscribedDubboMetadataService(String serviceName) {
|
||||||
metadataServiceInstanceSelector.choose(discoveryClient.getInstances(serviceName))
|
// this need to judge whether the initialization is successful or not. The failed
|
||||||
.map(this::getDubboMetadataServiceURLs)
|
// initialization will not change the initializedServices
|
||||||
.ifPresent(dubboMetadataServiceURLs -> {
|
Optional<ServiceInstance> optionalServiceInstance = metadataServiceInstanceSelector
|
||||||
dubboMetadataServiceURLs.forEach(dubboMetadataServiceURL -> {
|
.choose(discoveryClient.getInstances(serviceName));
|
||||||
|
if (!((Optional) optionalServiceInstance).isPresent()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ServiceInstance serviceInstance = optionalServiceInstance.get();
|
||||||
|
if (null == serviceInstance) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
List<URL> dubboMetadataServiceURLs = getDubboMetadataServiceURLs(serviceInstance);
|
||||||
|
if (dubboMetadataServiceURLs.isEmpty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
for (URL dubboMetadataServiceURL : dubboMetadataServiceURLs) {
|
||||||
try {
|
try {
|
||||||
initSubscribedDubboMetadataServiceURL(
|
initSubscribedDubboMetadataServiceURL(dubboMetadataServiceURL);
|
||||||
|
DubboMetadataService dubboMetadataService = dubboMetadataConfigServiceProxy
|
||||||
|
.getProxy(serviceName);
|
||||||
|
if (dubboMetadataService == null) {
|
||||||
|
dubboMetadataService = initDubboMetadataServiceProxy(
|
||||||
dubboMetadataServiceURL);
|
dubboMetadataServiceURL);
|
||||||
initDubboMetadataServiceProxy(dubboMetadataServiceURL);
|
}
|
||||||
|
|
||||||
|
if (dubboMetadataService == null) {
|
||||||
|
removeMetadataAndInitializedService(serviceName,
|
||||||
|
dubboMetadataServiceURL);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Throwable e) {
|
catch (Throwable e) {
|
||||||
if (logger.isErrorEnabled()) {
|
if (logger.isErrorEnabled()) {
|
||||||
logger.error(e.getMessage(), e);
|
logger.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
});
|
|
||||||
initDubboRestServiceMetadataRepository(serviceName);
|
initDubboRestServiceMetadataRepository(serviceName);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initSubscribedDubboMetadataServiceURL(URL dubboMetadataServiceURL) {
|
private void initSubscribedDubboMetadataServiceURL(URL dubboMetadataServiceURL) {
|
||||||
@ -640,11 +675,13 @@ public class DubboServiceMetadataRepository
|
|||||||
subscribedDubboMetadataServiceURLs.add(serviceKey, dubboMetadataServiceURL);
|
subscribedDubboMetadataServiceURLs.add(serviceKey, dubboMetadataServiceURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initDubboMetadataServiceProxy(URL dubboMetadataServiceURL) {
|
private DubboMetadataService initDubboMetadataServiceProxy(
|
||||||
|
URL dubboMetadataServiceURL) {
|
||||||
String serviceName = dubboMetadataServiceURL.getParameter(APPLICATION_KEY);
|
String serviceName = dubboMetadataServiceURL.getParameter(APPLICATION_KEY);
|
||||||
String version = dubboMetadataServiceURL.getParameter(VERSION_KEY);
|
String version = dubboMetadataServiceURL.getParameter(VERSION_KEY);
|
||||||
// Initialize DubboMetadataService with right version
|
// Initialize DubboMetadataService with right version
|
||||||
dubboMetadataConfigServiceProxy.initProxy(serviceName, version);
|
return dubboMetadataConfigServiceProxy.initProxy(serviceName, version);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -48,9 +48,11 @@ import static java.util.Collections.emptyList;
|
|||||||
import static org.apache.dubbo.common.URLBuilder.from;
|
import static org.apache.dubbo.common.URLBuilder.from;
|
||||||
import static org.apache.dubbo.common.constants.CommonConstants.GROUP_KEY;
|
import static org.apache.dubbo.common.constants.CommonConstants.GROUP_KEY;
|
||||||
import static org.apache.dubbo.common.constants.CommonConstants.PROTOCOL_KEY;
|
import static org.apache.dubbo.common.constants.CommonConstants.PROTOCOL_KEY;
|
||||||
|
import static org.apache.dubbo.common.constants.CommonConstants.PROVIDER;
|
||||||
import static org.apache.dubbo.common.constants.CommonConstants.PROVIDER_SIDE;
|
import static org.apache.dubbo.common.constants.CommonConstants.PROVIDER_SIDE;
|
||||||
import static org.apache.dubbo.common.constants.CommonConstants.SIDE_KEY;
|
import static org.apache.dubbo.common.constants.CommonConstants.SIDE_KEY;
|
||||||
import static org.apache.dubbo.common.constants.CommonConstants.VERSION_KEY;
|
import static org.apache.dubbo.common.constants.CommonConstants.VERSION_KEY;
|
||||||
|
import static org.apache.dubbo.common.constants.RegistryConstants.CATEGORY_KEY;
|
||||||
import static org.apache.dubbo.common.constants.RegistryConstants.EMPTY_PROTOCOL;
|
import static org.apache.dubbo.common.constants.RegistryConstants.EMPTY_PROTOCOL;
|
||||||
import static org.apache.dubbo.registry.Constants.ADMIN_PROTOCOL;
|
import static org.apache.dubbo.registry.Constants.ADMIN_PROTOCOL;
|
||||||
import static org.springframework.util.StringUtils.hasText;
|
import static org.springframework.util.StringUtils.hasText;
|
||||||
@ -161,6 +163,13 @@ public abstract class AbstractSpringCloudRegistry extends FailbackRegistry {
|
|||||||
}
|
}
|
||||||
else if (isDubboMetadataServiceURL(url)) { // for DubboMetadataService
|
else if (isDubboMetadataServiceURL(url)) { // for DubboMetadataService
|
||||||
subscribeDubboMetadataServiceURLs(url, listener);
|
subscribeDubboMetadataServiceURLs(url, listener);
|
||||||
|
if (from(url).getParameter(CATEGORY_KEY) != null
|
||||||
|
&& from(url).getParameter(CATEGORY_KEY).contains(PROVIDER)) {
|
||||||
|
// Fix #1259 and #753 Listene meta service change events to remove useless
|
||||||
|
// clients
|
||||||
|
registerServiceInstancesChangedEventListener(url, listener);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else { // for general Dubbo Services
|
else { // for general Dubbo Services
|
||||||
subscribeDubboServiceURLs(url, listener);
|
subscribeDubboServiceURLs(url, listener);
|
||||||
@ -228,10 +237,13 @@ public abstract class AbstractSpringCloudRegistry extends FailbackRegistry {
|
|||||||
// Re-obtain the latest list of available metadata address here, ip or port may
|
// Re-obtain the latest list of available metadata address here, ip or port may
|
||||||
// change.
|
// change.
|
||||||
// by https://github.com/wangzihaogithub
|
// by https://github.com/wangzihaogithub
|
||||||
dubboMetadataConfigServiceProxy.removeProxy(serviceName);
|
// When the last service provider is closed, 【fix 1259】while close the
|
||||||
repository.removeMetadataAndInitializedService(serviceName);
|
// channel,when up a new provider then repository.initializeMetadata(serviceName)
|
||||||
dubboGenericServiceFactory.destroy(serviceName);
|
// will throw Exception.
|
||||||
repository.initializeMetadata(serviceName);
|
// dubboMetadataConfigServiceProxy.removeProxy(serviceName);
|
||||||
|
// repository.removeMetadataAndInitializedService(serviceName);
|
||||||
|
// dubboGenericServiceFactory.destroy(serviceName);
|
||||||
|
// repository.initializeMetadata(serviceName);
|
||||||
if (CollectionUtils.isEmpty(serviceInstances)) {
|
if (CollectionUtils.isEmpty(serviceInstances)) {
|
||||||
if (logger.isWarnEnabled()) {
|
if (logger.isWarnEnabled()) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
@ -239,6 +251,18 @@ public abstract class AbstractSpringCloudRegistry extends FailbackRegistry {
|
|||||||
+ "available , please make sure the further impact",
|
+ "available , please make sure the further impact",
|
||||||
serviceName, url.getServiceKey());
|
serviceName, url.getServiceKey());
|
||||||
}
|
}
|
||||||
|
if (isDubboMetadataServiceURL(url)) {
|
||||||
|
// if meta service change, and serviceInstances is zero, will clean up
|
||||||
|
// information about this client
|
||||||
|
dubboMetadataConfigServiceProxy.removeProxy(serviceName);
|
||||||
|
repository.removeMetadataAndInitializedService(serviceName, url);
|
||||||
|
dubboGenericServiceFactory.destroy(serviceName);
|
||||||
|
String listenerId = generateId(url);
|
||||||
|
// The metaservice will restart the new listener. It needs to be optimized
|
||||||
|
// to see whether the original listener can be reused.
|
||||||
|
this.registerListeners.remove(listenerId);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URLs with {@link RegistryConstants#EMPTY_PROTOCOL}
|
* URLs with {@link RegistryConstants#EMPTY_PROTOCOL}
|
||||||
*/
|
*/
|
||||||
@ -250,6 +274,11 @@ public abstract class AbstractSpringCloudRegistry extends FailbackRegistry {
|
|||||||
listener.notify(allSubscribedURLs);
|
listener.notify(allSubscribedURLs);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (isDubboMetadataServiceURL(url)) {
|
||||||
|
// Prevent duplicate generation of DubboMetadataService
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
repository.initializeMetadata(serviceName);
|
||||||
|
|
||||||
DubboMetadataService dubboMetadataService = dubboMetadataConfigServiceProxy
|
DubboMetadataService dubboMetadataService = dubboMetadataConfigServiceProxy
|
||||||
.getProxy(serviceName);
|
.getProxy(serviceName);
|
||||||
@ -301,7 +330,11 @@ public abstract class AbstractSpringCloudRegistry extends FailbackRegistry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private List<URL> emptyURLs(URL url) {
|
private List<URL> emptyURLs(URL url) {
|
||||||
return asList(from(url).setProtocol(EMPTY_PROTOCOL).build());
|
// issue : When the last service provider is closed, the client still periodically
|
||||||
|
// connects to the last provider.n
|
||||||
|
// fix https://github.com/alibaba/spring-cloud-alibaba/issues/1259
|
||||||
|
return asList(from(url).setProtocol(EMPTY_PROTOCOL).removeParameter(CATEGORY_KEY)
|
||||||
|
.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ServiceInstance> getServiceInstances(String serviceName) {
|
private List<ServiceInstance> getServiceInstances(String serviceName) {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
<artifactId>spring-cloud-alibaba-starters</artifactId>
|
||||||
<version>2.1.2.BUILD-SNAPSHOT</version>
|
<version>${revision}</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user