Skip to content

Commit c00a3c5

Browse files
committed
update document for uploadmanager instance declare [ci skip]
1 parent 39a6d9f commit c00a3c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ JDK 7 及以上
3030
```Java
3131
import com.qiniu.storage.UploadManager;
3232
import com.qiniu.util.Auth;
33+
import com.qiniu.storage.Configuration;
3334
import com.qiniu.http.Response;
3435
...
35-
UploadManager uploadManager = new UploadManager()
36+
Configuration cfg = new Configuration();
37+
UploadManager uploadManager = new UploadManager(cfg);
3638
Auth auth = Auth.create(accessKey, secretKey);
3739
String token = auth.uploadToken(bucketName);
3840
Response r = upManager.put("hello world".getBytes(), "yourkey", token);

0 commit comments

Comments
 (0)