use of com.qiniu.common.Zone in project paascloud-master by paascloud.
the class QiniuOssConfiguration method uploadManager.
/**
* Upload manager upload manager.
*
* @return the upload manager
*/
@Bean
public UploadManager uploadManager() {
Zone zone = Zone.autoZone();
// 创建上传对象
UploadManager uploadManager = new UploadManager(new com.qiniu.storage.Configuration(zone));
log.info("Create UploadManager OK.");
return uploadManager;
}
use of com.qiniu.common.Zone in project paascloud-master by paascloud.
the class QiniuOssConfiguration method bucketManager.
/**
* Bucket manager bucket manager.
*
* @return the bucket manager
*/
@Bean
public BucketManager bucketManager() {
Zone zone = Zone.autoZone();
// 创建上传对象
BucketManager uploadManager = new BucketManager(auth(), new com.qiniu.storage.Configuration(zone));
log.info("Create BucketManager OK.");
return uploadManager;
}
Aggregations