Skip to content

Commit 53b632b

Browse files
authored
Update springboot-oss.md
1 parent 013503c commit 53b632b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

md/springboot-oss.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,19 @@ public class AliyunOSSConfigConstant {
126126
}
127127
```
128128

129+
获取 BUCKE_NAME 和 END_POINT:
130+
129131
到阿里云 OSS 控制台:[https://oss.console.aliyun.com/overview](https://oss.console.aliyun.com/overview)获取上述相关信息:
130132

131133
![获取BUCKE_NAME和END_POINT](http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-12-4/62719967.jpg)
132134

133-
![获取AccessKey ID和Access Key Secret](http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-12-4/56702589.jpg)
135+
获取AccessKey ID和Access Key Secret第一步:
136+
137+
![获取AccessKey ID和Access Key Secret第一步](http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-12-4/56702589.jpg)
138+
139+
获取AccessKey ID和Access Key Secret第二步:
140+
141+
![获取AccessKey ID和Access Key Secret第二步](http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-12-5/3395348.jpg)
134142

135143
### 2.2 通过.properties 配置
136144

@@ -167,7 +175,7 @@ public class AliyunOSSConfig {
167175

168176
## 三 工具类相关方法编写
169177

170-
该工具类主要提供了三个方法:上传文件 `upLoad(File file) `、通过文件名下载文件`downloadFile(String objectName, String localFileName) `、列出某个文件夹下的所有文件`listFile( )`。笔主比较懒,代码可能还比较简陋,各位可以懂懂自己的脑子,参考阿里云官方提供的相关文档来根据自己的需要来优化。Java API文档地址如下:
178+
该工具类主要提供了三个方法:上传文件 `upLoad(File file) `、通过文件名下载文件`downloadFile(String objectName, String localFileName) `、列出某个文件夹下的所有文件`listFile( )`。笔主比较懒,代码可能还比较简陋,各位可以懂懂自己的脑子,参考阿里云官方提供的相关文档来根据自己的需求来优化。Java API文档地址如下:
171179

172180
[https://help.aliyun.com/document_detail/32008.html?spm=a2c4g.11186623.6.703.238374b4PsMzWf](https://help.aliyun.com/document_detail/32008.html?spm=a2c4g.11186623.6.703.238374b4PsMzWf)
173181

0 commit comments

Comments
 (0)