Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KeRan213539 committed Jan 13, 2021
1 parent 220d70a commit 2940c41
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ public enum ConfigType {
/**
* config type is "yaml".
*/
YAML("yaml");
YAML("yaml"),

/**
* not a real type.
*/
UNSET("unset");

String type;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
/**
* Nacos Config type.
*
* @return "properties"
* @return default value is {@link ConfigType#UNSET}
*/
ConfigType type() default ConfigType.PROPERTIES;
ConfigType type() default ConfigType.UNSET;

/**
* Specify {@link NacosConfigConverter Nacos configuraion convertor} class to convert target type instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
/**
* config style.
*
* @return default value is {@link ConfigType#PROPERTIES}
* @return default value is {@link ConfigType#UNSET}
*/
ConfigType type() default ConfigType.PROPERTIES;
ConfigType type() default ConfigType.UNSET;

/**
* It indicates the properties of current doBind bean is auto-refreshed when Nacos configuration is changed.
Expand Down

0 comments on commit 2940c41

Please sign in to comment.