package cn.reghao.autodop.dmaster.spring.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author reghao
 * @date 2019-08-27 00:17:55
 */
@Data
@Component
@ConfigurationProperties(prefix = "oss")
public class OssProperties {
    @Value("${oss.host}")
    private String host;
    @Value("${oss.key}")
    private String key;
    @Value("${oss.secret}")
    private String secret;
    @Value("${oss.bucket}")
    private String bucket;
    @Value("${oss.folder}")
    private String folder;
}
