mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
update pic address
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
#### 验证自动注入
|
||||
在浏览器地址栏输入 `http://127.0.0.1:18084/user`,并点击调转,可以看到成功从 Nacos Config Server 中获取了数据。
|
||||
|
||||

|
||||

|
||||
|
||||
#### 验证动态刷新
|
||||
1. 执行如下命令,修改 Nacos Server 端的配置数据
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
2. 在浏览器地址栏输入 `http://127.0.0.1:18084/user`,并点击调转,可以看到应用从 Nacos Server 中获取了最新的数据,age 变成了 18。
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## 原理
|
||||
@@ -156,7 +156,7 @@ Spring Boot 1.x 可以通过访问 http://127.0.0.1:18084/nacos-config 来查看
|
||||
|
||||
Spring Boot 2.x 可以通过访问 http://127.0.0.1:18084/actuator/nacos-config 来访问。
|
||||
|
||||

|
||||

|
||||
|
||||
如上图所示,Sources 表示此客户端从哪些 Nacos Config 配置项中获取了信息,RefreshHistory 表示动态刷新的历史记录,最多保存20条,NacosConfigProperties 则为 Nacos Config Starter 本身的配置。
|
||||
|
||||
|
@@ -84,7 +84,7 @@ Before we start the demo, let's learn how to connect Nacos Config to a Spring Cl
|
||||
#### Automatic Injection
|
||||
Enter `http://127.0.0.1:18084/user` in the browser address bar and click Go to, we can see the data successfully obtained from Nacos Config Server.
|
||||
|
||||

|
||||

|
||||
|
||||
#### Dynamic Refresh
|
||||
1. Run the following command to modify the configuration data on the Nacos Server side.
|
||||
@@ -94,7 +94,7 @@ Enter `http://127.0.0.1:18084/user` in the browser address bar and click Go to,
|
||||
2. Enter `http://127.0.0.1:18084/user` in the browser address bar and click Go to,
|
||||
We can see that the app got the latest data from Nacos Server and the age becomes 18.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Principle
|
||||
@@ -159,7 +159,7 @@ To view the endpoint information, visit the following URLS:
|
||||
Spring Boot1.x: Nacos Config Endpoint URL is http://127.0.0.1:18083/nacos-config.
|
||||
Spring Boot2.x: Nacos Config Endpoint URL is http://127.0.0.1:18083/actuator/nacos-config.
|
||||
|
||||

|
||||

|
||||
|
||||
As shown in the figure above, Sources indicates which Nacos Config configuration items the client has obtained information, RefreshHistory indicates the dynamic refresh history, and up to 20, and NacosConfigProperties is the configuration of Nacos Config Starter itself.
|
||||
|
||||
|
Reference in New Issue
Block a user