|
@@ -8,6 +8,7 @@ import com.fdkankan.fyun.oss.constant.OssConstants;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
@@ -19,6 +20,7 @@ import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@Component
|
|
|
+@ConditionalOnProperty(name = "fyun.type",havingValue = "oss")
|
|
|
public class OssFileService extends AbstractFYunFileService {
|
|
|
|
|
|
private Logger log = LoggerFactory.getLogger(this.getClass().getName());
|