Skip to content

Commit fae4ce3

Browse files
authored
Merge pull request #515 from qiniu/ys_dev
发布v7.5.0版本
2 parents 92c1c8a + 7c08a1e commit fae4ce3

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 7.5.0 (2021-04-15)
4+
5+
## 增加
6+
* 新增上传服务基础 api
7+
* 新增分片上传 v2 功能
8+
9+
310
## 7.4.0 (2020-11-25)
411

512
## 增加

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<dependency>
1313
<groupId>com.qiniu</groupId>
1414
<artifactId>qiniu-java-sdk</artifactId>
15-
<version>[7.4.0, 7.4.99]</version>
15+
<version>[7.5.0, 7.5.99]</version>
1616
</dependency>
1717
```
1818
或者 Gradle:
1919
```groovy
20-
compile 'com.qiniu:qiniu-java-sdk:7.4.+'
20+
compile 'com.qiniu:qiniu-java-sdk:7.5.+'
2121
```
2222

2323
## 运行环境
@@ -33,11 +33,20 @@ import com.qiniu.util.Auth;
3333
import com.qiniu.storage.Configuration;
3434
import com.qiniu.http.Response;
3535
...
36+
// 分片上传 v1
3637
Configuration cfg = new Configuration();
3738
UploadManager uploadManager = new UploadManager(cfg);
3839
Auth auth = Auth.create(accessKey, secretKey);
3940
String token = auth.uploadToken(bucketName);
4041
Response r = upManager.put("hello world".getBytes(), "yourkey", token);
42+
43+
// 分片上传 v2
44+
Configuration cfg = new Configuration();
45+
cfg.resumableUploadAPIVersion = Configuration.ResumableUploadAPIVersion.V2;
46+
UploadManager uploadManager = new UploadManager(cfg);
47+
Auth auth = Auth.create(accessKey, secretKey);
48+
String token = auth.uploadToken(bucketName);
49+
Response r = upManager.put("hello world".getBytes(), "yourkey", token);
4150
...
4251
```
4352

src/main/java/com/qiniu/common/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public final class Constants {
99
/**
1010
* 版本号
1111
*/
12-
public static final String VERSION = "7.4.0";
12+
public static final String VERSION = "7.5.0";
1313
/**
1414
* 块大小,不能改变
1515
*/

0 commit comments

Comments
 (0)