Package com.alibaba.nacos.api.annotation
Annotation Type NacosInjected
-
@Target({CONSTRUCTOR,FIELD,METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented public @interface NacosInjected
An annotation to injectConfigServiceorNamingServiceinstance into the target Bean.- Since:
- 0.2.1
- Author:
- Mercy
- See Also:
ConfigService,NamingService,NacosProperties
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description NacosPropertiespropertiesTheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.
-
-
-
Element Detail
-
properties
NacosProperties properties
TheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.- Returns:
- the default value is
NacosProperties
- Default:
- @com.alibaba.nacos.api.annotation.NacosProperties
-
-