From 0885d08778c8529d540696b09b43ab3b1e83be30 Mon Sep 17 00:00:00 2001 From: chuntaojun Date: Mon, 24 Jun 2019 20:25:24 +0800 Subject: [PATCH] feat(api): @NacosConfigurationProperties support prefix setting --- .../annotation/NacosConfigurationProperties.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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;