File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,19 @@ public class AliyunOSSConfigConstant {
126
126
}
127
127
```
128
128
129
+ 获取 BUCKE_NAME 和 END_POINT:
130
+
129
131
到阿里云 OSS 控制台:[ https://oss.console.aliyun.com/overview ] ( https://oss.console.aliyun.com/overview ) 获取上述相关信息:
130
132
131
133
![ 获取BUCKE_NAME和END_POINT] ( http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-12-4/62719967.jpg )
132
134
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 )
134
142
135
143
### 2.2 通过.properties 配置
136
144
@@ -167,7 +175,7 @@ public class AliyunOSSConfig {
167
175
168
176
## 三 工具类相关方法编写
169
177
170
- 该工具类主要提供了三个方法:上传文件 ` upLoad(File file) ` 、通过文件名下载文件` downloadFile(String objectName, String localFileName) ` 、列出某个文件夹下的所有文件` listFile( ) ` 。笔主比较懒,代码可能还比较简陋,各位可以懂懂自己的脑子,参考阿里云官方提供的相关文档来根据自己的需要来优化 。Java API文档地址如下:
178
+ 该工具类主要提供了三个方法:上传文件 ` upLoad(File file) ` 、通过文件名下载文件` downloadFile(String objectName, String localFileName) ` 、列出某个文件夹下的所有文件` listFile( ) ` 。笔主比较懒,代码可能还比较简陋,各位可以懂懂自己的脑子,参考阿里云官方提供的相关文档来根据自己的需求来优化 。Java API文档地址如下:
171
179
172
180
[ 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 )
173
181
You can’t perform that action at this time.
0 commit comments