1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

fix doc error

This commit is contained in:
flystar32 2018-12-19 20:41:44 +08:00
parent 4b055b93c1
commit f4049a936a
2 changed files with 12 additions and 12 deletions

View File

@ -129,7 +129,7 @@ user name :james; age: 18
=== 更改配置文件扩展名 === 更改配置文件扩展名
spring-cloud-starter-alicloud-acm 中 DataId 默认的文件扩展名是 properties。除去 properties 格式之外,也支持 yaml 格式。 spring-cloud-starter-alicloud-acm 中 DataId 默认的文件扩展名是 properties。除去 properties 格式之外,也支持 yaml 格式。
支持通过 spring.cloud.nacos.config.file-extension 来配置文件的扩展名yaml 格式可以配置成 `yaml` 或 `yml`。 支持通过 spring.cloud.alicloud.acm.file-extension 来配置文件的扩展名yaml 格式可以配置成 `yaml` 或 `yml`。
NOTE: 修改文件扩展名后,在配置中心中的 DataID 以及 Content 的格式都必须做相应的修改。 NOTE: 修改文件扩展名后,在配置中心中的 DataID 以及 Content 的格式都必须做相应的修改。
@ -138,7 +138,7 @@ NOTE: 修改文件扩展名后,在配置中心中的 DataID 以及 Content 的
spring-cloud-starter-alicloud-acm 默认支持配置的动态更新,当您在配置中心修改配置的内容时,会触发 Spring 中的 Context Refresh 动作。 spring-cloud-starter-alicloud-acm 默认支持配置的动态更新,当您在配置中心修改配置的内容时,会触发 Spring 中的 Context Refresh 动作。
带有 @RefreshScope 和 @ConfigurationProperties 注解的类会自动刷新。 带有 @RefreshScope 和 @ConfigurationProperties 注解的类会自动刷新。
NOTE: 你可以通过配置 spring.cloud.nacos.config.refresh.enabled=false 来关闭动态刷新 NOTE: 你可以通过配置 spring.cloud.alicloud.acm.refresh.enabled=false 来关闭动态刷新
=== profile 粒度的配置 === profile 粒度的配置
@ -157,14 +157,14 @@ Note: 也可以通过 JVM 参数 -Dspring.profiles.active=develop 或者 --sprin
=== 支持自定义 Group 的配置 === 支持自定义 Group 的配置
在没有明确指定 `{spring.cloud.nacos.config.group}` 配置的情况下, 默认使用的是 DEFAULT_GROUP 。如果需要自定义自己的 Group可以通过以下配置来实现 在没有明确指定 `{spring.cloud.alicloud.acm.group}` 配置的情况下, 默认使用的是 DEFAULT_GROUP 。如果需要自定义自己的 Group可以通过以下配置来实现
[source,properties] [source,properties]
---- ----
spring.cloud.nacos.config.group=DEVELOP_GROUP spring.cloud.alicloud.acm.group=DEVELOP_GROUP
---- ----
NOTE: 该配置必须放在 bootstrap.properties 文件中。并且在添加配置时 Group 的值一定要和 `spring.cloud.nacos.config.group` 的配置值一致。 NOTE: 该配置必须放在 bootstrap.properties 文件中。并且在添加配置时 Group 的值一定要和 `spring.cloud.alicloud.acm.group` 的配置值一致。
==== 支持共享配置 ==== 支持共享配置
@ -180,6 +180,6 @@ spring.application.group=company.department.team
越往后优先级越高,最高的仍然是应用自身所独有的配置。 越往后优先级越高,最高的仍然是应用自身所独有的配置。
NOTE: 共享配置中 DataId 默认后缀为 properties可以通过 spring.cloud.nacos.config.file-extension 配置. `{spring.application.group}:{spring.application.name}.{file-extension}` 。 NOTE: 共享配置中 DataId 默认后缀为 properties可以通过 spring.cloud.alicloud.acm.file-extension 配置. `{spring.application.group}:{spring.application.name}.{file-extension}` 。
NOTE: 如果设置了 `spring.profiles.active` DataId 的格式还支持 `{spring.application.group}:{spring.application.name}-{spring.profiles.active}.{file-extension}`。优先级高于 `{spring.application.group}:{spring.application.name}.{file-extension}` NOTE: 如果设置了 `spring.profiles.active` DataId 的格式还支持 `{spring.application.group}:{spring.application.name}-{spring.profiles.active}.{file-extension}`。优先级高于 `{spring.application.group}:{spring.application.name}.{file-extension}`

View File

@ -129,7 +129,7 @@ user name :james; age: 18
=== Modify Configuration File Extension === Modify Configuration File Extension
The default file extension of dataId in spring-cloud-starter-alicloud-acm is properties. In addition to properties, yaml is also supported. The default file extension of dataId in spring-cloud-starter-alicloud-acm is properties. In addition to properties, yaml is also supported.
You can set the file extension using spring.cloud.nacos.config.file-extension. Just set it to `yaml` or `yml`for yaml format. You can set the file extension using spring.cloud.alicloud.acm.file-extension. Just set it to `yaml` or `yml`for yaml format.
NOTE: After you change the file extension, you need to make corresponding format changes in the DataID and content of the configuration center. NOTE: After you change the file extension, you need to make corresponding format changes in the DataID and content of the configuration center.
@ -138,7 +138,7 @@ NOTE: After you change the file extension, you need to make corresponding format
spring-cloud-starter-alicloud-acm supports dynamic configuration updates. Context Refresh in Spring is triggered when you update configuration in the configuration center. spring-cloud-starter-alicloud-acm supports dynamic configuration updates. Context Refresh in Spring is triggered when you update configuration in the configuration center.
All classes with @RefreshScope and @ConfigurationProperties annotations will be refershed automatically. All classes with @RefreshScope and @ConfigurationProperties annotations will be refershed automatically.
NOTE: You can disable automatic refresh by this setting: spring.cloud.nacos.config.refresh.enabled=false NOTE: You can disable automatic refresh by this setting: spring.cloud.alicloud.acm.refresh.enabled=false
=== Configure Profile Granularity === Configure Profile Granularity
@ -157,14 +157,14 @@ Note: You can also configure the granularity through JVM parameters such as -Dsp
=== Support Custom Group Configurations === Support Custom Group Configurations
DEFAULT_GROUP is used by default when no `{spring.cloud.nacos.config.group}` configuration is defined. If you need to define your own group, you can use the following method: DEFAULT_GROUP is used by default when no `{spring.cloud.alicloud.acm.group}` configuration is defined. If you need to define your own group, you can use the following method:
[source,properties] [source,properties]
---- ----
spring.cloud.nacos.config.group=DEVELOP_GROUP spring.cloud.alicloud.acm.group=DEVELOP_GROUP
---- ----
NOTE: This configuration must be placed in the bootstrap.properties file, and the value of Group must be the same with the value of `spring.cloud.nacos.config.group`. NOTE: This configuration must be placed in the bootstrap.properties file, and the value of Group must be the same with the value of `spring.cloud.alicloud.acm.group`.
==== Support Shared Configurations ==== Support Shared Configurations
@ -180,6 +180,6 @@ After that, it also retrieves configuration from {spring.application.group}: {s
The later in order, the higer the priority, and the unique configuration of the application itself has the highest priority. The later in order, the higer the priority, and the unique configuration of the application itself has the highest priority.
NOTE: The default suffix of DataId is properties, and you can change it using spring.cloud.nacos.config.file-extension. `{spring.application.group}: {spring.application.name}. {file-extension}` 。 NOTE: The default suffix of DataId is properties, and you can change it using spring.cloud.alicloud.acm.file-extension. `{spring.application.group}: {spring.application.name}. {file-extension}` 。
NOTE: If you configured `spring.profiles.active` , then the DataId format of `{spring.application.group}: {spring.application.name}-{spring.profiles.active}. {file-extension}` is also supported, and has higher priority than `{spring.application.group}: {spring.application.name}. {file-extension}` NOTE: If you configured `spring.profiles.active` , then the DataId format of `{spring.application.group}: {spring.application.name}-{spring.profiles.active}. {file-extension}` is also supported, and has higher priority than `{spring.application.group}: {spring.application.name}. {file-extension}`