File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 29
29
public class GetStartedSample {
30
30
31
31
private static String endpoint = "http://oss-cn-hangzhou.aliyuncs.com" ;
32
- private static String accessKeyId = "ik3rP0m8QmsLwnVH " ;
33
- private static String accessKeySecret = "G3ADnVCjZqPHzeK4ukpFuJHrJLMJtq " ;
34
- private static String bucketName = "oss-test-xyd " ;
32
+ private static String accessKeyId = "<accessKeyId> " ;
33
+ private static String accessKeySecret = "<accessKeySecret> " ;
34
+ private static String bucketName = "<bucketName> " ;
35
35
36
36
private static String key = "MyObjectKey" ;
37
37
Original file line number Diff line number Diff line change 20
20
public class PostObjectSample {
21
21
22
22
// 需要上传的本地文件,确保该文件存在
23
- private String localFilePath = "D: \\ work \\ oss \\ java-sdk \\ java-sdk-sample \\ src \\ samples \\ HelloOSS.java " ;
23
+ private String localFilePath = "<localFile> " ;
24
24
// OSS域名,如http://oss-cn-hangzhou.aliyuncs.com
25
25
private String endpoint = "http://oss-cn-hangzhou.aliyuncs.com" ;
26
26
// AccessKey请登录https://ak-console.aliyun.com/#/查看
27
- private String accessKeyId = "2NeLUvmJFYbrj2Eb " ;
28
- private String accessKeySecret = "tpKbdpzCavhbYghxHih5urCw5lkBdx " ;
27
+ private String accessKeyId = "<accessKeyId> " ;
28
+ private String accessKeySecret = "<accessKeySecret> " ;
29
29
// 你之前创建的bucket,确保这个bucket已经创建
30
- private String bucketName = "oss-test-byb " ;
30
+ private String bucketName = "<bucketName> " ;
31
31
// 上传文件后的object名称
32
32
private String key = "yourKey" ;
33
33
You can’t perform that action at this time.
0 commit comments