com.healthy.common.qcloud.cos.QcloudCosProperties Maven / Gradle / Ivy
package com.healthy.common.qcloud.cos;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import java.util.ArrayList;
import java.util.List;
/**
* 腾讯云COS服务配置
*
* @author xiaomingzhang
*/
@Data
@ConfigurationProperties(prefix = "qcloud.cos")
public class QcloudCosProperties {
/**
* appId
*/
private String appId;
/**
* secret.
*/
private String secretId;
/**
* secretKey
*/
private String secretKey;
/**
* storages
*/
@NestedConfigurationProperty
private List storages = new ArrayList<>();
@Data
public static class Storage {
/**
* 存储名称
*/
private String name;
/**
* bucket区域
*/
private String region = "ap-beijing";
/**
* 存储桶名称
*/
private String bucketName;
/**
* 是否加密签名
*/
private boolean sign;
/**
* 签名时效: 默认分钟
*/
private int expiration = 15;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy