package com.vci.starter.web.annotation.config;
|
|
import org.springframework.core.annotation.AliasFor;
|
import org.springframework.stereotype.Component;
|
|
import java.lang.annotation.ElementType;
|
import java.lang.annotation.Retention;
|
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.Target;
|
|
/**
|
* 配置中心的模块
|
* @author weidy
|
* @date 2020/2/5
|
*/
|
@Target(ElementType.TYPE)
|
@Retention(RetentionPolicy.RUNTIME)
|
@Component
|
public @interface VciConfigModule {
|
/**
|
* bean的名称
|
* @return
|
*/
|
@AliasFor(
|
annotation = Component.class
|
)
|
String value() default "";
|
|
/**
|
* 名称
|
* @return 在配置中心的名称
|
*/
|
String name();
|
|
/**
|
* 标题
|
* @return 在配置中心显示的标题
|
*/
|
String title();
|
|
/**
|
* 描述信息
|
* @return 描述信息
|
*/
|
String description() default "";
|
|
}
|