Merge pull request #1427 from chuntaojun/feat_config_prefix

[FEATURE] @NacosConfigurationProperties support prefix setting
This commit is contained in:
Fury Zhu 2019-06-30 22:54:27 +08:00 committed by GitHub
commit dc7485b108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;