Merge pull request #1427 from chuntaojun/feat_config_prefix
[FEATURE] @NacosConfigurationProperties support prefix setting
This commit is contained in:
commit
dc7485b108
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user