feat(api): @NacosConfigurationProperties support prefix setting

This commit is contained in:
chuntaojun 2019-06-24 20:25:24 +08:00
parent 090b047d4b
commit 0885d08778

View File

@ -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 <code>""</code>
*/
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 <code>false</code>
* @return default value is {@link ConfigType#PROPERTIES}
*/
ConfigType type() default ConfigType.PROPERTIES;