cn.cloudscope.oss.config.StorageAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oss-spring-boot-starter Show documentation
Show all versions of oss-spring-boot-starter Show documentation
A Spring Boot Starter for OSS storage
package cn.cloudscope.oss.config;
import cn.cloudscope.oss.config.properties.CommonProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
/**
* 存储模块自动配置类
*
* @author wenxiaopeng
* @date 2022/02/08 19:18
*
*
* www.cloudscope.cn
* Copyright (c) 2021. All Rights Reserved.
*
*/
@Configuration
@EnableConfigurationProperties(CommonProperties.class)
@ConditionalOnProperty(prefix = "oss.storage", name = "enabled", havingValue = "true")
@Import({MinioConfiguration.class, OssConfiguration.class})
public class StorageAutoConfiguration {
}