com.sinszm.sofa.annotation.EnableDFS Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of szm-sofa-boot-starter-dfs Show documentation
Show all versions of szm-sofa-boot-starter-dfs Show documentation
高可用服务框架,分布式文件存储操作组件 Copyright © 2021 智慧程序猿(sinsz.com) All rights reserved.
The newest version!
package com.sinszm.sofa.annotation;
import com.sinszm.sofa.condition.ConditionalOnDfs;
import com.sinszm.sofa.enums.DfsType;
import org.springframework.context.annotation.Conditional;
import java.lang.annotation.*;
/**
* DFS启用开关
*
* @author fh411
*/
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional(ConditionalOnDfs.class)
public @interface EnableDFS {
/**
* 分布式文件服务类型指定
* @return 支持需要
*/
DfsType value() default DfsType.MINIO;
}