diff --git a/api/src/main/java/com/alibaba/nacos/api/config/annotation/NacosConfigurationProperties.java b/api/src/main/java/com/alibaba/nacos/api/config/annotation/NacosConfigurationProperties.java index 9d8961055..2d2cf6480 100644 --- a/api/src/main/java/com/alibaba/nacos/api/config/annotation/NacosConfigurationProperties.java +++ b/api/src/main/java/com/alibaba/nacos/api/config/annotation/NacosConfigurationProperties.java @@ -36,6 +36,13 @@ import static com.alibaba.nacos.api.common.Constants.DEFAULT_GROUP; @Documented public @interface NacosConfigurationProperties { + /** + * config prefix name + * + * @return default value is "" + */ + String prefix() default ""; + /** * Nacos Group ID * @@ -51,9 +58,9 @@ public @interface NacosConfigurationProperties { String dataId(); /** - * if the config style is yaml + * config style * - * @return default value is false + * @return default value is {@link ConfigType#PROPERTIES} */ ConfigType type() default ConfigType.PROPERTIES;