mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
fix NacosDiscoveryClienet getInstance method, only healthy instancerename alibaba storage to alicloud storage
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
<artifactId>storage-example</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<description>Example demonstrating how to use storage</description>
|
||||
<description>Example demonstrating how to use alibab cloud storage</description>
|
||||
|
||||
|
||||
<dependencies>
|
||||
@@ -22,7 +22,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-storage</artifactId>
|
||||
<artifactId>spring-cloud-starter-alicloud-storage</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-storage</artifactId>
|
||||
<artifactId>spring-cloud-starter-alicloud-storage</artifactId>
|
||||
</dependency>
|
||||
|
||||
2. 在配置文件中配置 OSS 服务对应的 accessKeyId、secretAccessKey 和 region。
|
||||
|
@@ -13,11 +13,11 @@ If your applications are Spring Cloud applications and you need to use Alibaba C
|
||||
Before we start the demo, let's learn how to connect OSS to a Spring Cloud application.
|
||||
**Note: This section is to show you how to connect to oss. The actual configurations have been completed in the following example, and you only need to specify your accessKeyId, secretAccessKey and region.**
|
||||
|
||||
1. Add dependency spring-cloud-starter-alibaba-storage in the pom.xml file in your Spring Cloud project.
|
||||
1. Add dependency spring-cloud-starter-alicloud-storage in the pom.xml file in your Spring Cloud project.
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-storage</artifactId>
|
||||
<artifactId>spring-cloud-starter-alicloud-storage</artifactId>
|
||||
</dependency>
|
||||
|
||||
2. Configure accessKeyId, secretAccessKey and region in application.properties.
|
||||
|
Reference in New Issue
Block a user