通过自定义注解,在运行时为Bean字段赋值
通过自定义注解,在运行时为Bean字段赋值
创建自定义注解
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Conf {
String value() default
转载
2020-07-27 18:20:50 ·
633 阅读 ·
0 评论