OBS学习笔记-SpringBoot集成华为云配置

1、依赖包导入



    com.huaweicloud
    esdk-obs-java
    3.22.3.1

2、自动配置引入

@Getter
@Setter
@Component("huaWeiYunOssProperties")
@ConfigurationProperties(prefix = "huaweiyun.oss")
public class HuaWeiYunOssProperties {

    private String accessKeyId = null;

    private String accessKeySecret = null;

    private String domain = null;

    private String endpoint = "";

    /** 持续时间(秒) */
    private Long duration = 300L;

    private String bucket;

}
@BeanComponentScan(basePackages = { Constants.SERVICE_PACKAGE }, annotationClass = Service.class)
@EnableConfigurationProperties({ HuaWeiYunOssProperties.class })
@Conf

你可能感兴趣的:(J2EE,spring,boot,华为云,obs,java)