注释类型 NacosValue


  • @Target({FIELD,METHOD,PARAMETER,ANNOTATION_TYPE})
    @Retention(RUNTIME)
    @Documented
    public @interface NacosValue
    Annotation which extends value to support auto-refresh.
    从以下版本开始:
    0.2.0
    作者:
    hxy1991
    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      java.lang.String value
      The actual value expression: e.g.
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      boolean autoRefreshed
      It indicates that the currently bound property is auto-refreshed when Nacos configuration is changed.
    • 元素详细资料

      • value

        java.lang.String value
        The actual value expression: e.g. "#{systemProperties.myProp}".
        返回:
        value expression
      • autoRefreshed

        boolean autoRefreshed
        It indicates that the currently bound property is auto-refreshed when Nacos configuration is changed.
        返回:
        default value is false
        默认值:
        false