Skip to content

Commit

Permalink
Merge pull request #1427 from chuntaojun/feat_config_prefix
Browse files Browse the repository at this point in the history
[FEATURE] @NacosConfigurationProperties support prefix setting
  • Loading branch information
nkorange authored Jun 30, 2019
2 parents fe950dc + 0885d08 commit dc7485b
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
@Documented
public @interface NacosConfigurationProperties {

/**
* config prefix name
*
* @return default value is <code>""</code>
*/
String prefix() default "";

/**
* Nacos Group ID
*
Expand All @@ -51,9 +58,9 @@
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;

Expand Down

0 comments on commit dc7485b

Please sign in to comment.