mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
ff2c390673
40
.circleci/config.yml
Normal file
40
.circleci/config.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
- image: springcloud/pipeline-base
|
||||||
|
user: appuser
|
||||||
|
environment:
|
||||||
|
_JAVA_OPTIONS: "-Xms1024m -Xmx2048m"
|
||||||
|
TERM: dumb
|
||||||
|
branches:
|
||||||
|
ignore:
|
||||||
|
- gh-pages # list of branches to ignore
|
||||||
|
resource_class: large
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
key: sc-alibaba-{{ .Branch }}
|
||||||
|
- run:
|
||||||
|
name: "Download dependencies"
|
||||||
|
command: ./mvnw -Pspring -U --fail-never dependency:go-offline || true
|
||||||
|
- save_cache:
|
||||||
|
key: sc-alibaba-{{ .Branch }}
|
||||||
|
paths:
|
||||||
|
- ~/.m2
|
||||||
|
- run:
|
||||||
|
name: "Running build"
|
||||||
|
command: ./mvnw -Pspring clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||||
|
- run:
|
||||||
|
name: "Aggregate test results"
|
||||||
|
when: always
|
||||||
|
command: |
|
||||||
|
mkdir -p ~/junit/
|
||||||
|
find . -type f -regex ".*/target/.*-reports/.*" -exec cp {} ~/junit/ \;
|
||||||
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
- store_artifacts:
|
||||||
|
path: ~/junit/
|
||||||
|
destination: artifacts
|
||||||
|
- store_test_results:
|
||||||
|
path: ~/junit/
|
||||||
|
destination: testartifacts
|
73
pom.xml
73
pom.xml
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Spring Cloud Alibaba</name>
|
<name>Spring Cloud Alibaba</name>
|
||||||
|
|
||||||
@ -28,12 +28,12 @@
|
|||||||
</licenses>
|
</licenses>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<url>https://github.com/spring-cloud-incubator/spring-cloud-alibabacloud</url>
|
<url>https://github.com/spring-cloud-incubator/spring-cloud-alibaba</url>
|
||||||
<connection>
|
<connection>
|
||||||
scm:git:git://github.com/spring-cloud-incubator/spring-cloud-alibabacloud.git
|
scm:git:git://github.com/spring-cloud-incubator/spring-cloud-alibaba.git
|
||||||
</connection>
|
</connection>
|
||||||
<developerConnection>
|
<developerConnection>
|
||||||
scm:git:ssh://git@github.com/spring-cloud-incubator/spring-cloud-alibabacloud.git
|
scm:git:ssh://git@github.com/spring-cloud-incubator/spring-cloud-alibaba.git
|
||||||
</developerConnection>
|
</developerConnection>
|
||||||
<tag>HEAD</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
@ -154,4 +154,69 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>spring</id>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>spring-snapshots</id>
|
||||||
|
<name>Spring Snapshots</name>
|
||||||
|
<url>https://repo.spring.io/libs-snapshot-local</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>spring-milestones</id>
|
||||||
|
<name>Spring Milestones</name>
|
||||||
|
<url>https://repo.spring.io/libs-milestone-local</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>spring-releases</id>
|
||||||
|
<name>Spring Releases</name>
|
||||||
|
<url>https://repo.spring.io/release</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
<pluginRepositories>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>spring-snapshots</id>
|
||||||
|
<name>Spring Snapshots</name>
|
||||||
|
<url>https://repo.spring.io/libs-snapshot-local</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
<releases>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</releases>
|
||||||
|
</pluginRepository>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>spring-milestones</id>
|
||||||
|
<name>Spring Milestones</name>
|
||||||
|
<url>https://repo.spring.io/libs-milestone-local</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</pluginRepository>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>spring-releases</id>
|
||||||
|
<name>Spring Releases</name>
|
||||||
|
<url>https://repo.spring.io/libs-release-local</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</pluginRepository>
|
||||||
|
</pluginRepositories>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -10,7 +10,7 @@
|
|||||||
<relativePath/>
|
<relativePath/>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</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>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<sentinel.version>0.2.0</sentinel.version>
|
<sentinel.version>0.2.0</sentinel.version>
|
||||||
<oss.version>3.1.0</oss.version>
|
<oss.version>3.1.0</oss.version>
|
||||||
<nacos.version>0.2.1</nacos.version>
|
<nacos.version>0.3.0-RC1</nacos.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>nacos-discovery-example</artifactId>
|
<artifactId>nacos-discovery-example</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>nacos-discovery-example</artifactId>
|
<artifactId>nacos-discovery-example</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
<relativePath>../../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
<relativePath>../../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
<artifactId>spring-cloud-alibaba-examples</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
<relativePath>../../../pom.xml</relativePath>
|
<relativePath>../../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -48,12 +48,6 @@ public class NacosDiscoveryAutoConfiguration {
|
|||||||
return new NacosServiceRegistry();
|
return new NacosServiceRegistry();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
|
||||||
@ConditionalOnMissingBean
|
|
||||||
public NacosDiscoveryProperties nacosProperties() {
|
|
||||||
return new NacosDiscoveryProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnBean(AutoServiceRegistrationProperties.class)
|
@ConditionalOnBean(AutoServiceRegistrationProperties.class)
|
||||||
public NacosRegistration nacosRegistration() {
|
public NacosRegistration nacosRegistration() {
|
||||||
|
@ -19,7 +19,6 @@ package org.springframework.cloud.alibaba.nacos;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.cloud.alibaba.nacos.registry.NacosRegistration;
|
|
||||||
import org.springframework.cloud.client.ServiceInstance;
|
import org.springframework.cloud.client.ServiceInstance;
|
||||||
import org.springframework.cloud.client.discovery.DiscoveryClient;
|
import org.springframework.cloud.client.discovery.DiscoveryClient;
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ public class NacosDiscoveryClient implements DiscoveryClient {
|
|||||||
public static final String DESCRIPTION = "Spring Cloud Nacos Discovery Client";
|
public static final String DESCRIPTION = "Spring Cloud Nacos Discovery Client";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private NacosRegistration nacosRegistration;
|
private NacosDiscoveryProperties discoveryProperties;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String description() {
|
public String description() {
|
||||||
@ -49,8 +48,8 @@ public class NacosDiscoveryClient implements DiscoveryClient {
|
|||||||
@Override
|
@Override
|
||||||
public List<ServiceInstance> getInstances(String serviceId) {
|
public List<ServiceInstance> getInstances(String serviceId) {
|
||||||
try {
|
try {
|
||||||
NamingService namingService = nacosRegistration.getNacosNamingService();
|
List<Instance> instances = discoveryProperties.namingServiceInstance()
|
||||||
List<Instance> instances = namingService.getAllInstances(serviceId);
|
.getAllInstances(serviceId);
|
||||||
return hostToServiceInstanceList(instances, serviceId);
|
return hostToServiceInstanceList(instances, serviceId);
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
@ -79,7 +78,7 @@ public class NacosDiscoveryClient implements DiscoveryClient {
|
|||||||
List<Instance> instances, String serviceId) {
|
List<Instance> instances, String serviceId) {
|
||||||
List<ServiceInstance> result = new ArrayList<ServiceInstance>(instances.size());
|
List<ServiceInstance> result = new ArrayList<ServiceInstance>(instances.size());
|
||||||
for (Instance instance : instances) {
|
for (Instance instance : instances) {
|
||||||
if(instance.isHealthy()) {
|
if (instance.isHealthy()) {
|
||||||
result.add(hostToServiceInstance(instance, serviceId));
|
result.add(hostToServiceInstance(instance, serviceId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -90,9 +89,8 @@ public class NacosDiscoveryClient implements DiscoveryClient {
|
|||||||
public List<String> getServices() {
|
public List<String> getServices() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
NamingService namingService = nacosRegistration.getNacosNamingService();
|
ListView<String> services = discoveryProperties.namingServiceInstance()
|
||||||
ListView<String> services = namingService.getServicesOfServer(1,
|
.getServicesOfServer(1, Integer.MAX_VALUE);
|
||||||
Integer.MAX_VALUE);
|
|
||||||
return services.getData();
|
return services.getData();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
@ -101,4 +99,7 @@ public class NacosDiscoveryClient implements DiscoveryClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NamingService getNamingService() {
|
||||||
|
return discoveryProperties.namingServiceInstance();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,4 +36,10 @@ public class NacosDiscoveryClientAutoConfiguration {
|
|||||||
return new NacosDiscoveryClient();
|
return new NacosDiscoveryClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
@ConditionalOnMissingBean
|
||||||
|
public NacosDiscoveryProperties nacosProperties() {
|
||||||
|
return new NacosDiscoveryProperties();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package org.springframework.cloud.alibaba.nacos;
|
package org.springframework.cloud.alibaba.nacos;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
@ -33,6 +35,18 @@ import java.util.Enumeration;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import com.alibaba.nacos.api.NacosFactory;
|
||||||
|
import com.alibaba.nacos.api.naming.NamingService;
|
||||||
|
import com.alibaba.nacos.client.naming.utils.UtilAndComs;
|
||||||
|
|
||||||
|
import static com.alibaba.nacos.api.PropertyKeyConst.ACCESS_KEY;
|
||||||
|
import static com.alibaba.nacos.api.PropertyKeyConst.CLUSTER_NAME;
|
||||||
|
import static com.alibaba.nacos.api.PropertyKeyConst.ENDPOINT;
|
||||||
|
import static com.alibaba.nacos.api.PropertyKeyConst.NAMESPACE;
|
||||||
|
import static com.alibaba.nacos.api.PropertyKeyConst.SECRET_KEY;
|
||||||
|
import static com.alibaba.nacos.api.PropertyKeyConst.SERVER_ADDR;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author dungu.zpf
|
* @author dungu.zpf
|
||||||
@ -42,6 +56,9 @@ import java.util.Objects;
|
|||||||
@ConfigurationProperties("spring.cloud.nacos.discovery")
|
@ConfigurationProperties("spring.cloud.nacos.discovery")
|
||||||
public class NacosDiscoveryProperties {
|
public class NacosDiscoveryProperties {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LoggerFactory
|
||||||
|
.getLogger(NacosDiscoveryProperties.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nacos discovery server address
|
* nacos discovery server address
|
||||||
*/
|
*/
|
||||||
@ -125,6 +142,11 @@ public class NacosDiscoveryProperties {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private InetUtils inetUtils;
|
private InetUtils inetUtils;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private Environment environment;
|
||||||
|
|
||||||
|
private NamingService namingService;
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void init() throws SocketException {
|
public void init() throws SocketException {
|
||||||
|
|
||||||
@ -163,6 +185,8 @@ public class NacosDiscoveryProperties {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.overrideFromEnv(environment);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEndpoint() {
|
public String getEndpoint() {
|
||||||
@ -333,4 +357,28 @@ public class NacosDiscoveryProperties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NamingService namingServiceInstance() {
|
||||||
|
|
||||||
|
if (null != namingService) {
|
||||||
|
return namingService;
|
||||||
|
}
|
||||||
|
|
||||||
|
Properties properties = new Properties();
|
||||||
|
properties.put(SERVER_ADDR, serverAddr);
|
||||||
|
properties.put(NAMESPACE, namespace);
|
||||||
|
properties.put(UtilAndComs.NACOS_NAMING_LOG_NAME, logName);
|
||||||
|
properties.put(ENDPOINT, endpoint);
|
||||||
|
properties.put(ACCESS_KEY, accessKey);
|
||||||
|
properties.put(SECRET_KEY, secretKey);
|
||||||
|
properties.put(CLUSTER_NAME, clusterName);
|
||||||
|
try {
|
||||||
|
namingService = NacosFactory.createNamingService(properties);
|
||||||
|
return namingService;
|
||||||
|
}
|
||||||
|
catch (Exception e) {
|
||||||
|
LOGGER.error("create naming service error!properties={},e=,", this, e);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
|
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
|
||||||
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
|
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
|
||||||
import org.springframework.cloud.alibaba.nacos.NacosDiscoveryProperties;
|
import org.springframework.cloud.alibaba.nacos.NacosDiscoveryProperties;
|
||||||
import org.springframework.cloud.alibaba.nacos.registry.NacosRegistration;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Endpoint for nacos discovery, get nacos properties and subscribed services
|
* Endpoint for nacos discovery, get nacos properties and subscribed services
|
||||||
@ -45,9 +44,6 @@ public class NacosDiscoveryEndpoint {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private NacosDiscoveryProperties nacosDiscoveryProperties;
|
private NacosDiscoveryProperties nacosDiscoveryProperties;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private NacosRegistration nacosRegistration;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return nacos discovery endpoint
|
* @return nacos discovery endpoint
|
||||||
*/
|
*/
|
||||||
@ -56,7 +52,7 @@ public class NacosDiscoveryEndpoint {
|
|||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
result.put("NacosDiscoveryProperties", nacosDiscoveryProperties);
|
result.put("NacosDiscoveryProperties", nacosDiscoveryProperties);
|
||||||
|
|
||||||
NamingService namingService = nacosRegistration.getNacosNamingService();
|
NamingService namingService = nacosDiscoveryProperties.namingServiceInstance();
|
||||||
List<ServiceInfo> subscribe = Collections.emptyList();
|
List<ServiceInfo> subscribe = Collections.emptyList();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -28,7 +28,6 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
* @author xiaojing
|
* @author xiaojing
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@ConditionalOnProperty(value = "spring.cloud.service-registry.auto-registration.enabled", matchIfMissing = true)
|
|
||||||
@ConditionalOnClass(Endpoint.class)
|
@ConditionalOnClass(Endpoint.class)
|
||||||
public class NacosDiscoveryEndpointAutoConfiguration {
|
public class NacosDiscoveryEndpointAutoConfiguration {
|
||||||
|
|
||||||
|
@ -28,15 +28,10 @@ import org.springframework.util.StringUtils;
|
|||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
||||||
|
|
||||||
import com.alibaba.nacos.api.NacosFactory;
|
|
||||||
import com.alibaba.nacos.api.naming.NamingService;
|
import com.alibaba.nacos.api.naming.NamingService;
|
||||||
import com.alibaba.nacos.client.naming.utils.UtilAndComs;
|
|
||||||
|
|
||||||
import static com.alibaba.nacos.api.PropertyKeyConst.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xiaojing
|
* @author xiaojing
|
||||||
@ -53,30 +48,10 @@ public class NacosRegistration implements Registration, ServiceInstance {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ApplicationContext context;
|
private ApplicationContext context;
|
||||||
|
|
||||||
private NamingService nacosNamingService;
|
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void init() {
|
public void init() {
|
||||||
|
|
||||||
Environment env = context.getEnvironment();
|
Environment env = context.getEnvironment();
|
||||||
nacosDiscoveryProperties.overrideFromEnv(context.getEnvironment());
|
|
||||||
|
|
||||||
Properties properties = new Properties();
|
|
||||||
properties.put(SERVER_ADDR, nacosDiscoveryProperties.getServerAddr());
|
|
||||||
properties.put(NAMESPACE, nacosDiscoveryProperties.getNamespace());
|
|
||||||
properties.put(UtilAndComs.NACOS_NAMING_LOG_NAME,
|
|
||||||
nacosDiscoveryProperties.getLogName());
|
|
||||||
properties.put(ENDPOINT, nacosDiscoveryProperties.getEndpoint());
|
|
||||||
properties.put(ACCESS_KEY, nacosDiscoveryProperties.getAccessKey());
|
|
||||||
properties.put(SECRET_KEY, nacosDiscoveryProperties.getSecretKey());
|
|
||||||
properties.put(CLUSTER_NAME, nacosDiscoveryProperties.getClusterName());
|
|
||||||
try {
|
|
||||||
nacosNamingService = NacosFactory.createNamingService(properties);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Integer managementPort = ManagementServerPortUtils.getPort(context);
|
Integer managementPort = ManagementServerPortUtils.getPort(context);
|
||||||
if (null != managementPort) {
|
if (null != managementPort) {
|
||||||
Map<String, String> metadata = nacosDiscoveryProperties.getMetadata();
|
Map<String, String> metadata = nacosDiscoveryProperties.getMetadata();
|
||||||
@ -144,11 +119,7 @@ public class NacosRegistration implements Registration, ServiceInstance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public NamingService getNacosNamingService() {
|
public NamingService getNacosNamingService() {
|
||||||
return nacosNamingService;
|
return nacosDiscoveryProperties.namingServiceInstance();
|
||||||
}
|
|
||||||
|
|
||||||
public void setNacosNamingService(NamingService nacosNamingService) {
|
|
||||||
this.nacosNamingService = nacosNamingService;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNacosDiscoveryProperties(
|
public void setNacosDiscoveryProperties(
|
||||||
@ -159,7 +130,6 @@ public class NacosRegistration implements Registration, ServiceInstance {
|
|||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "NacosRegistration{" + "nacosDiscoveryProperties="
|
return "NacosRegistration{" + "nacosDiscoveryProperties="
|
||||||
+ nacosDiscoveryProperties + ", nacosNamingService=" + nacosNamingService
|
+ nacosDiscoveryProperties + '}';
|
||||||
+ '}';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ package org.springframework.cloud.alibaba.nacos.ribbon;
|
|||||||
import com.netflix.client.config.IClientConfig;
|
import com.netflix.client.config.IClientConfig;
|
||||||
import com.netflix.loadbalancer.AbstractServerList;
|
import com.netflix.loadbalancer.AbstractServerList;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.cloud.alibaba.nacos.registry.NacosRegistration;
|
import org.springframework.cloud.alibaba.nacos.NacosDiscoveryClient;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -32,7 +32,7 @@ import com.alibaba.nacos.api.naming.pojo.Instance;
|
|||||||
public class NacosServerList extends AbstractServerList<NacosServer> {
|
public class NacosServerList extends AbstractServerList<NacosServer> {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private NacosRegistration registration;
|
private NacosDiscoveryClient discoveryClient;
|
||||||
|
|
||||||
private String serviceId;
|
private String serviceId;
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ public class NacosServerList extends AbstractServerList<NacosServer> {
|
|||||||
|
|
||||||
private List<NacosServer> getServers() {
|
private List<NacosServer> getServers() {
|
||||||
try {
|
try {
|
||||||
List<Instance> instances = registration.getNacosNamingService()
|
List<Instance> instances = discoveryClient.getNamingService()
|
||||||
.getAllInstances(serviceId);
|
.getAllInstances(serviceId);
|
||||||
return instancesToServerList(instances);
|
return instancesToServerList(instances);
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,8 @@ public class NacosDiscoveryAutoConfigurationTests {
|
|||||||
private WebApplicationContextRunner contextRunner = new WebApplicationContextRunner()
|
private WebApplicationContextRunner contextRunner = new WebApplicationContextRunner()
|
||||||
.withConfiguration(
|
.withConfiguration(
|
||||||
AutoConfigurations.of(NacosDiscoveryTestConfiguration.class,
|
AutoConfigurations.of(NacosDiscoveryTestConfiguration.class,
|
||||||
NacosDiscoveryAutoConfiguration.class))
|
NacosDiscoveryAutoConfiguration.class,
|
||||||
|
NacosDiscoveryClientAutoConfiguration.class))
|
||||||
.withPropertyValues("spring.cloud.nacos.discovery.server-addr=127.0.0.1:8080")
|
.withPropertyValues("spring.cloud.nacos.discovery.server-addr=127.0.0.1:8080")
|
||||||
.withPropertyValues("spring.cloud.nacos.discovery.port=18080")
|
.withPropertyValues("spring.cloud.nacos.discovery.port=18080")
|
||||||
.withPropertyValues("spring.cloud.nacos.discovery.service=myapp");
|
.withPropertyValues("spring.cloud.nacos.discovery.service=myapp");
|
||||||
|
@ -6,6 +6,7 @@ import org.junit.Test;
|
|||||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||||
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
|
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
|
||||||
|
import org.springframework.cloud.alibaba.nacos.NacosDiscoveryClientAutoConfiguration;
|
||||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
@ -19,49 +20,43 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
*/
|
*/
|
||||||
public class NacosRibbonClientConfigurationTests {
|
public class NacosRibbonClientConfigurationTests {
|
||||||
|
|
||||||
|
private WebApplicationContextRunner contextRunner = new WebApplicationContextRunner()
|
||||||
|
.withConfiguration(AutoConfigurations.of(NacosRibbonTestConfiguration.class,
|
||||||
|
NacosRibbonClientConfiguration.class,
|
||||||
|
NacosDiscoveryClientAutoConfiguration.class,
|
||||||
|
RibbonNacosAutoConfiguration.class))
|
||||||
|
.withPropertyValues("spring.cloud.nacos.discovery.server-addr=127.0.0.1:8080")
|
||||||
|
.withPropertyValues("spring.cloud.nacos.discovery.port=18080")
|
||||||
|
.withPropertyValues("spring.cloud.nacos.discovery.service=myapp");
|
||||||
|
|
||||||
private WebApplicationContextRunner contextRunner = new WebApplicationContextRunner()
|
@Test
|
||||||
.withConfiguration(
|
public void testProperties() {
|
||||||
AutoConfigurations.of(NacosRibbonTestConfiguration.class,
|
|
||||||
NacosRibbonClientConfiguration.class,
|
|
||||||
RibbonNacosAutoConfiguration.class))
|
|
||||||
.withPropertyValues("spring.cloud.nacos.discovery.server-addr=127.0.0.1:8080")
|
|
||||||
.withPropertyValues("spring.cloud.nacos.discovery.port=18080")
|
|
||||||
.withPropertyValues("spring.cloud.nacos.discovery.service=myapp");
|
|
||||||
|
|
||||||
|
this.contextRunner.run(context -> {
|
||||||
|
NacosServerList serverList = context.getBean(NacosServerList.class);
|
||||||
|
assertThat(serverList.getServiceId()).isEqualTo("myapp");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
@EnableAutoConfiguration
|
||||||
|
@EnableDiscoveryClient
|
||||||
|
static class NacosRibbonTestConfiguration {
|
||||||
|
|
||||||
@Test
|
@Bean
|
||||||
public void testProperties() {
|
IClientConfig iClientConfig() {
|
||||||
|
// return new IClientConfig.Builder().s.build();
|
||||||
|
DefaultClientConfigImpl config = new DefaultClientConfigImpl();
|
||||||
|
config.setClientName("myapp");
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
|
||||||
this.contextRunner.run(context -> {
|
@Bean
|
||||||
NacosServerList serverList = context.getBean(NacosServerList.class);
|
@LoadBalanced
|
||||||
assertThat(serverList.getServiceId()).isEqualTo("myapp");
|
RestTemplate restTemplate() {
|
||||||
});
|
return new RestTemplate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@Configuration
|
|
||||||
@EnableAutoConfiguration
|
|
||||||
@EnableDiscoveryClient
|
|
||||||
static class NacosRibbonTestConfiguration {
|
|
||||||
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
IClientConfig iClientConfig(){
|
|
||||||
//return new IClientConfig.Builder().s.build();
|
|
||||||
DefaultClientConfigImpl config = new DefaultClientConfigImpl();
|
|
||||||
config.setClientName("myapp");
|
|
||||||
return config;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
@LoadBalanced
|
|
||||||
RestTemplate restTemplate(){
|
|
||||||
return new RestTemplate();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-test</artifactId>
|
<artifactId>spring-cloud-alibaba-test</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba-test</artifactId>
|
<artifactId>spring-cloud-alibaba-test</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-starter-alibaba</artifactId>
|
<artifactId>spring-cloud-starter-alibaba</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-alibaba</artifactId>
|
<artifactId>spring-cloud-starter-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||||
<name>Spring Cloud Starter Alibaba Nacos Config</name>
|
<name>Spring Cloud Starter Alibaba Nacos Config</name>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-alibaba</artifactId>
|
<artifactId>spring-cloud-starter-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||||
<name>Spring Cloud Starter Alibaba Nacos Discovery</name>
|
<name>Spring Cloud Starter Alibaba Nacos Discovery</name>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-alibaba</artifactId>
|
<artifactId>spring-cloud-starter-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||||
<name>Spring Cloud Starter Alibaba Sentinel</name>
|
<name>Spring Cloud Starter Alibaba Sentinel</name>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-alibaba</artifactId>
|
<artifactId>spring-cloud-alibaba</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-starter-alicloud</artifactId>
|
<artifactId>spring-cloud-starter-alicloud</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-alicloud</artifactId>
|
<artifactId>spring-cloud-starter-alicloud</artifactId>
|
||||||
<version>0.2.0</version>
|
<version>0.2.0.BUILD-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>spring-cloud-starter-alicloud-oss</artifactId>
|
<artifactId>spring-cloud-starter-alicloud-oss</artifactId>
|
||||||
<name>Spring Cloud Starter Alibaba Cloud OSS</name>
|
<name>Spring Cloud Starter Alibaba Cloud OSS</name>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user