田源
2025-01-16 a13255b4129ee8a7a7b7e1ecd8e02dd2c78f7c17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 "";
 
}