All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.cloudscope.oss.config.properties.CommonProperties Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package cn.cloudscope.oss.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.time.Duration;

/**
 *  配置文件父类
 *
 * @author wangkp
 * @date 2022/1/24 14:24
 *
 * 
 *              www.cloudscope.cn
 *      Copyright (c) 2019. All Rights Reserved.
 * 
*/ @Data @ConfigurationProperties(prefix = "oss.storage") public class CommonProperties { /** 是否启用 */ private boolean enabled = true; /** * 存储方式(oss/minio),无配置,默认为minio */ private Provider provider = Provider.minio; /** * 编号 */ private String accessKey = "minioadmin"; /** * 密钥 */ private String secretKey = "minioadmin"; /** * 应用名称 */ private String bucketName = "basic"; /** * 公开桶名称 */ private String bucketPublic = "basic-public"; /** * 服务端上传链接 */ private String endPoint = "http://127.0.0.1:9000"; /** * 默认链接过期时间(s) */ private Duration expiresIn; public enum Provider { /** 由minio提供存储服务 */ minio, /** 由阿里云oss提供存储服务 */ aliyun, /** 腾讯COS */ cos, ; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy