@@ -35,7 +35,7 @@ public static void createBucketDemo() {
3535 // 3 生成cos客户端
3636 COSClient cosclient = new COSClient (cred , clientConfig );
3737 // bucket名称, 需包含appid
38- String bucketName = "publicreadbucket-1251668577 " ;
38+ String bucketName = "publicreadbucket-12500000000 " ;
3939
4040 CreateBucketRequest createBucketRequest = new CreateBucketRequest (bucketName );
4141 // 设置bucket的权限为PublicRead(公有读私有写), 其他可选有私有读写, 公有读私有写
@@ -55,7 +55,7 @@ public static void setBucketVersioning() {
5555 // 3 生成cos客户端
5656 COSClient cosclient = new COSClient (cred , clientConfig );
5757 // bucket名称, 需包含appid
58- String bucketName = "examplebucket-1251668577 " ;
58+ String bucketName = "examplebucket-12500000000 " ;
5959
6060 // 开启版本控制
6161 BucketVersioningConfiguration bucketVersioningConfiguration = new BucketVersioningConfiguration (BucketVersioningConfiguration .ENABLED );
@@ -76,7 +76,7 @@ public static void setBucketLogging() {
7676 // 3 生成cos客户端
7777 COSClient cosclient = new COSClient (cred , clientConfig );
7878 // bucket名称, 需包含appid
79- String bucketName = "examplebucket-1251668577 " ;
79+ String bucketName = "examplebucket-12500000000 " ;
8080
8181 BucketLoggingConfiguration bucketLoggingConfiguration = new BucketLoggingConfiguration ();
8282 // 设置日志存储的 bucket
@@ -97,7 +97,7 @@ public static void setGetDeleteBucketTagging() {
9797 // 3 生成cos客户端
9898 COSClient cosclient = new COSClient (cred , clientConfig );
9999 // bucket名需包含appid
100- String bucketName = "mybucket-1251668577 " ;
100+ String bucketName = "mybucket-12500000000 " ;
101101 List <TagSet > tagSetList = new LinkedList <TagSet >();
102102 TagSet tagSet = new TagSet ();
103103 tagSet .setTag ("age" , "18" );
@@ -122,7 +122,7 @@ public static void deleteBucketDemo() {
122122 // 3 生成cos客户端
123123 COSClient cosclient = new COSClient (cred , clientConfig );
124124 // bucket名称, 需包含appid
125- String bucketName = "publicreadbucket-1251668577 " ;
125+ String bucketName = "publicreadbucket-12500000000 " ;
126126 // 删除bucket
127127 cosclient .deleteBucket (bucketName );
128128
@@ -139,7 +139,7 @@ public static void judgeBucketExistDemo() {
139139 // 3 生成cos客户端
140140 COSClient cosclient = new COSClient (cred , clientConfig );
141141
142- String bucketName = "publicreadbucket-1251668577 " ;
142+ String bucketName = "publicreadbucket-12500000000 " ;
143143 // 判断bucket是否存在
144144 cosclient .doesBucketExist (bucketName );
145145
@@ -175,7 +175,7 @@ public static void createMAZBucketDemo() {
175175 // 3 生成cos客户端
176176 COSClient cosclient = new COSClient (cred , clientConfig );
177177
178- String bucketname = "publicreadbucket-1251668577 " ;
178+ String bucketname = "publicreadbucket-12500000000 " ;
179179 CreateBucketRequest createBucketRequest = new CreateBucketRequest (bucketname );
180180
181181 try {
0 commit comments