mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
refactor storage module: rename storage to oss
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
<artifactId>storage-example</artifactId>
|
||||
<artifactId>oss-example</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<description>Example demonstrating how to use alicloud storage</description>
|
||||
<description>Example demonstrating how to use alicloud oss</description>
|
||||
|
||||
|
||||
<dependencies>
|
||||
@@ -22,7 +22,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alicloud-storage</artifactId>
|
||||
<artifactId>spring-cloud-starter-alicloud-oss</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
@@ -1,4 +1,4 @@
|
||||
# Storage Example
|
||||
# OSS Example
|
||||
|
||||
## 项目说明
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
**注意:本节只是为了便于您理解接入方式,本示例代码中已经完成接入工作,您只需修改 accessKeyId、secretAccessKey、region 即可。**
|
||||
|
||||
1. 修改 pom.xml 文件,引入 alicloud-storage starter。
|
||||
1. 修改 pom.xml 文件,引入 alicloud-oss starter。
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alicloud-storage</artifactId>
|
||||
<artifactId>spring-cloud-starter-alicloud-oss</artifactId>
|
||||
</dependency>
|
||||
|
||||
2. 在配置文件中配置 OSS 服务对应的 accessKeyId、secretAccessKey 和 region。
|
@@ -1,4 +1,4 @@
|
||||
# Storage Example
|
||||
# OSS Example
|
||||
## Introduction
|
||||
|
||||
If your applications are Spring Cloud applications and you need to use Alibaba Cloud's OSS service for file storage (for example, storing commodity image for your e-commerce business), you can use OSS starter. This topic provides an example to illustrate how to use OSS starter to implement object storage for Spring Cloud applications.
|
||||
@@ -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-alicloud-storage in the pom.xml file in your Spring Cloud project.
|
||||
1. Add dependency spring-cloud-starter-alicloud-oss in the pom.xml file in your Spring Cloud project.
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alicloud-storage</artifactId>
|
||||
<artifactId>spring-cloud-starter-alicloud-oss</artifactId>
|
||||
</dependency>
|
||||
|
||||
2. Configure accessKeyId, secretAccessKey and region in application.properties.
|
@@ -22,7 +22,7 @@
|
||||
<module>sentinel-example/sentinel-dubbo-example/sentinel-dubbo-api</module>
|
||||
<module>nacos-example/nacos-discovery-example</module>
|
||||
<module>nacos-example/nacos-config-example</module>
|
||||
<module>storage-example</module>
|
||||
<module>oss-example</module>
|
||||
</modules>
|
||||
|
||||
<build>
|
||||
|
Reference in New Issue
Block a user