Annotation Interface 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
-
必需元素概要
所需元素 -
可选元素概要
可选元素修饰符和类型可选元素说明booleanIt indicates that the currently bound property is auto-refreshed when Nacos configuration is changed.
-
元素详细资料
-
value
String valueThe actual value expression: e.g. "#{systemProperties.myProp}".- 返回:
- value expression
-
-
-
autoRefreshed
boolean autoRefreshedIt indicates that the currently bound property is auto-refreshed when Nacos configuration is changed.- 返回:
- default value is
false
- 默认值:
- false
-