cn.allbs.annotation.EnableAllbsSwagger2 Maven / Gradle / Ivy
package cn.allbs.annotation;
import cn.allbs.swagger.Swagger2Config;
import org.springframework.context.annotation.Import;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import java.lang.annotation.*;
/**
* 自定义注解功能: 开启swagger功能
*
* @author ChenQi
* @version 1.0
* @since 2021/3/18 9:19
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableSwagger2
@Import({Swagger2Config.class})
public @interface EnableAllbsSwagger2 {
}