{"id":886,"date":"2023-03-09T22:37:08","date_gmt":"2023-03-09T14:37:08","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=886"},"modified":"2023-04-29T16:39:21","modified_gmt":"2023-04-29T08:39:21","slug":"spring-cloud-configuration-center-git-example","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/09\/spring-cloud-configuration-center-git-example\/","title":{"rendered":"Spring Cloud\u914d\u7f6e\u4e2d\u5fc3git\u793a\u4f8b"},"content":{"rendered":"<p>\u968f\u7740\u7ebf\u4e0a\u9879\u76ee\u53d8\u7684\u65e5\u76ca\u5e9e\u5927\uff0c\u6bcf\u4e2a\u9879\u76ee\u90fd\u6563\u843d\u7740\u5404\u79cd\u914d\u7f6e\u6587\u4ef6\uff0c\u5982\u679c\u91c7\u7528\u5206\u5e03\u5f0f\u7684\u5f00\u53d1\u6a21\u5f0f\uff0c\u9700\u8981\u7684\u914d\u7f6e\u6587\u4ef6\u968f\u7740\u670d\u52a1\u589e\u52a0\u800c\u4e0d\u65ad\u589e\u591a\u3002\u67d0\u4e00\u4e2a\u57fa\u7840\u670d\u52a1\u4fe1\u606f\u53d8\u66f4\uff0c\u90fd\u4f1a\u5f15\u8d77\u4e00\u7cfb\u5217\u7684\u66f4\u65b0\u548c\u91cd\u542f\uff0c\u8fd0\u7ef4\u82e6\u4e0d\u582a\u8a00\u4e5f\u5bb9\u6613\u51fa\u9519\u3002\u914d\u7f6e\u4e2d\u5fc3\u4fbf\u662f\u89e3\u51b3\u6b64\u7c7b\u95ee\u9898\u7684\u7075\u4e39\u5999\u836f\u3002<\/p>\n<p>\u5e02\u9762\u4e0a\u5f00\u6e90\u7684\u914d\u7f6e\u4e2d\u5fc3\u6709\u5f88\u591a\uff0cBAT\u6bcf\u5bb6\u90fd\u51fa\u8fc7\uff0c360\u7684QConf\u3001\u6dd8\u5b9d\u7684diamond\u3001\u767e\u5ea6\u7684disconf\u90fd\u662f\u89e3\u51b3\u8fd9\u7c7b\u95ee\u9898\u3002\u56fd\u5916\u4e5f\u6709\u5f88\u591a\u5f00\u6e90\u7684\u914d\u7f6e\u4e2d\u5fc3Apache Commons Configuration\u3001owner\u3001cfg4j\u7b49\u7b49\u3002\u8fd9\u4e9b\u5f00\u6e90\u7684\u8f6f\u4ef6\u4ee5\u53ca\u89e3\u51b3\u65b9\u6848\u90fd\u5f88\u4f18\u79c0\uff0c\u4f46\u662fSpring Cloud Config\u529f\u80fd\u5168\u9762\u5f3a\u5927\uff0c\u53ef\u4ee5\u65e0\u7f1d\u7684\u548cSpring\u4f53\u7cfb\u76f8\u7ed3\u5408\u3002<\/p>\n<p><!-- more --><\/p>\n<h2>Spring Cloud Config<\/h2>\n<p>\u5728\u4e86\u89e3Spring Cloud Config\u4e4b\u524d\uff0c\u53ef\u4ee5\u60f3\u60f3\u4e00\u4e2a\u914d\u7f6e\u4e2d\u5fc3\u63d0\u4f9b\u7684\u6838\u5fc3\u529f\u80fd\u5e94\u8be5\u6709\u4ec0\u4e48<\/p>\n<ul>\n<li>\u63d0\u4f9b\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u652f\u6301<\/li>\n<li>\u96c6\u4e2d\u7ba1\u7406\u5404\u73af\u5883\u7684\u914d\u7f6e\u6587\u4ef6<\/li>\n<li>\u914d\u7f6e\u6587\u4ef6\u4fee\u6539\u4e4b\u540e\uff0c\u53ef\u4ee5\u5feb\u901f\u7684\u751f\u6548<\/li>\n<li>\u53ef\u4ee5\u8fdb\u884c\u7248\u672c\u7ba1\u7406<\/li>\n<li>\u652f\u6301\u5927\u7684\u5e76\u53d1\u67e5\u8be2<\/li>\n<li>\u652f\u6301\u5404\u79cd\u8bed\u8a00<\/li>\n<\/ul>\n<p>Spring Cloud Config\u53ef\u4ee5\u5b8c\u7f8e\u7684\u652f\u6301\u4ee5\u4e0a\u6240\u6709\u7684\u9700\u6c42\u3002<\/p>\n<p>Spring Cloud Config\u9879\u76ee\u662f\u4e00\u4e2a\u89e3\u51b3\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u914d\u7f6e\u7ba1\u7406\u65b9\u6848\u3002\u5b83\u5305\u542b\u4e86Client\u548cServer\u4e24\u4e2a\u90e8\u5206\uff0cServer\u63d0\u4f9b\u914d\u7f6e\u6587\u4ef6\u7684\u5b58\u50a8\u3001\u4ee5\u63a5\u53e3\u7684\u5f62\u5f0f\u5c06\u914d\u7f6e\u6587\u4ef6\u7684\u5185\u5bb9\u63d0\u4f9b\u51fa\u53bb\uff0cClient\u901a\u8fc7\u63a5\u53e3\u83b7\u53d6\u6570\u636e\u3001\u5e76\u4f9d\u636e\u6b64\u6570\u636e\u521d\u59cb\u5316\u81ea\u5df1\u7684\u5e94\u7528\u3002Spring Cloud\u4f7f\u7528git\u6216svn\u5b58\u653e\u914d\u7f6e\u6587\u4ef6\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f7f\u7528git\uff0c\u6211\u4eec\u5148\u4ee5git\u4e3a\u4f8b\u505a\u4e00\u5957\u793a\u4f8b\u3002<\/p>\n<p>\u9996\u5148\u5728Github\u4e0a\u9762\u521b\u5efa\u4e86\u4e00\u4e2a\u6587\u4ef6\u5939config-repo\u7528\u6765\u5b58\u653e\u914d\u7f6e\u6587\u4ef6\uff0c\u4e3a\u4e86\u6a21\u62df\u751f\u4ea7\u73af\u5883\uff0c\u6211\u4eec\u521b\u5efa\u4ee5\u4e0b\u4e09\u4e2a\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code>\/\/ \u5f00\u53d1\u73af\u5883\nappblog-config-dev.properties\n\/\/ \u6d4b\u8bd5\u73af\u5883\nappblog-config-test.properties\n\/\/ \u751f\u4ea7\u73af\u5883\nappblog-config-pro.properties<\/code><\/pre>\n<p>\u6bcf\u4e2a\u914d\u7f6e\u6587\u4ef6\u4e2d\u90fd\u5199\u4e00\u4e2a\u5c5e\u6027<code>appblog.hello<\/code>\uff0c\u5c5e\u6027\u503c\u5206\u522b\u662f<code>Hello, I&#039;m dev<\/code>\u3002\u4e0b\u9762\u6211\u4eec\u5f00\u59cb\u914d\u7f6eserver\u7aef<\/p>\n<h2>Server\u7aef<\/h2>\n<h3>\u6dfb\u52a0\u4f9d\u8d56<\/h3>\n<pre><code class=\"language-xml\">&lt;dependencies&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\n        &lt;artifactId&gt;spring-cloud-config-server&lt;\/artifactId&gt;\n    &lt;\/dependency&gt;\n&lt;\/dependencies&gt;<\/code><\/pre>\n<p>\u53ea\u9700\u8981\u52a0\u5165<code>spring-cloud-config-server<\/code>\u5305\u5f15\u7528\u65e2\u53ef<\/p>\n<h3>\u914d\u7f6e\u6587\u4ef6<\/h3>\n<pre><code>server:\n  port: 8001\nspring:\n  application:\n    name: spring-cloud-config-server\n  cloud:\n    config:\n      server:\n        git:\n          uri: https:\/\/github.com\/ityouknow\/spring-cloud-starter\/     # \u914d\u7f6egit\u4ed3\u5e93\u7684\u5730\u5740\n          search-paths: config-repo                             # git\u4ed3\u5e93\u5730\u5740\u4e0b\u7684\u76f8\u5bf9\u5730\u5740\uff0c\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2a\uff0c\u7528`,`\u5206\u5272\u3002\n          username:                                             # git\u4ed3\u5e93\u7684\u8d26\u53f7\n          password:                                             # git\u4ed3\u5e93\u7684\u5bc6\u7801<\/code><\/pre>\n<p>Spring Cloud Config\u4e5f\u63d0\u4f9b\u672c\u5730\u5b58\u50a8\u914d\u7f6e\u7684\u65b9\u5f0f\u3002\u6211\u4eec\u53ea\u9700\u8981\u8bbe\u7f6e\u5c5e\u6027<code>spring.profiles.active=native<\/code>\uff0cConfig Server\u4f1a\u9ed8\u8ba4\u4ece\u5e94\u7528\u7684<code>src\/main\/resource<\/code>\u76ee\u5f55\u4e0b\u68c0\u7d22\u914d\u7f6e\u6587\u4ef6\u3002\u4e5f\u53ef\u4ee5\u901a\u8fc7<code>spring.cloud.config.server.native.searchLocations=file:E:\/properties\/<\/code>\u5c5e\u6027\u6765\u6307\u5b9a\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u867d\u7136Spring Cloud Config\u63d0\u4f9b\u4e86\u8fd9\u6837\u7684\u529f\u80fd\uff0c\u4f46\u662f\u4e3a\u4e86\u652f\u6301\u66f4\u597d\u7684\u7ba1\u7406\u5185\u5bb9\u548c\u7248\u672c\u63a7\u5236\u7684\u529f\u80fd\uff0c\u8fd8\u662f\u63a8\u8350\u4f7f\u7528git\u7684\u65b9\u5f0f\u3002<\/p>\n<h3>\u542f\u52a8\u7c7b<\/h3>\n<p>\u542f\u52a8\u7c7b\u6dfb\u52a0<code>@EnableConfigServer<\/code>\uff0c\u6fc0\u6d3b\u5bf9\u914d\u7f6e\u4e2d\u5fc3\u7684\u652f\u6301<\/p>\n<pre><code class=\"language-java\">@EnableConfigServer\n@SpringBootApplication\npublic class ConfigServerApplication {\n\n    public static void main(String[] args) {\n        SpringApplication.run(ConfigServerApplication.class, args);\n    }\n}<\/code><\/pre>\n<p>\u5230\u6b64Server\u7aef\u76f8\u5173\u914d\u7f6e\u5df2\u7ecf\u5b8c\u6210<\/p>\n<h3>\u6d4b\u8bd5<\/h3>\n<p>\u9996\u5148\u6211\u4eec\u5148\u8981\u6d4b\u8bd5Server\u7aef\u662f\u5426\u53ef\u4ee5\u8bfb\u53d6\u5230github\u4e0a\u9762\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u76f4\u63a5\u8bbf\u95ee\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/localhost:8001\/appblog-config\/dev\">http:\/\/localhost:8001\/appblog-config\/dev<\/a><\/p>\n<p>\u8fd4\u56de\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-json\">{\n    &quot;name&quot;: &quot;appblog-config&quot;, \n    &quot;profiles&quot;: [\n        &quot;dev&quot;\n    ], \n    &quot;label&quot;: null, \n    &quot;version&quot;: null, \n    &quot;state&quot;: null, \n    &quot;propertySources&quot;: [\n        {\n            &quot;name&quot;: &quot;https:\/\/github.com\/iyezhou\/spring-cloud-starter\/config-repo\/appblog-config-dev.properties&quot;, \n            &quot;source&quot;: {\n                &quot;appblog.hello&quot;: &quot;Hello, I&#039;m dev&quot;\n            }\n        }\n    ]\n}<\/code><\/pre>\n<p>\u4e0a\u8ff0\u7684\u8fd4\u56de\u7684\u4fe1\u606f\u5305\u542b\u4e86\u914d\u7f6e\u6587\u4ef6\u7684\u4f4d\u7f6e\u3001\u7248\u672c\u3001\u914d\u7f6e\u6587\u4ef6\u7684\u540d\u79f0\u4ee5\u53ca\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u5177\u4f53\u5185\u5bb9\uff0c\u8bf4\u660eServer\u7aef\u5df2\u7ecf\u6210\u529f\u83b7\u53d6\u4e86git\u4ed3\u5e93\u7684\u914d\u7f6e\u4fe1\u606f\u3002<\/p>\n<p>\u5982\u679c\u76f4\u63a5\u67e5\u770b\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u4fe1\u606f\u53ef\u8bbf\u95ee\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/localhost:8001\/appblog-config-dev.properties\">http:\/\/localhost:8001\/appblog-config-dev.properties<\/a> \uff0c\u8fd4\u56de\uff1a<code>appblog.hello: Hello, I&#039;m dev<\/code><\/p>\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<code>appblog-config-dev.properties<\/code>\u4e2d\u914d\u7f6e\u4fe1\u606f\u4e3a\uff1a<code>appblog.hello=Hello, I&#039;m dev update<\/code>,\u518d\u6b21\u5728\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/localhost:8001\/appblog-config-dev.properties \uff0c\u8fd4\u56de\uff1a<code>appblog.hello: Hello, I&#039;m dev update<\/code>\u3002\u8bf4\u660eserver\u7aef\u4f1a\u81ea\u52a8\u8bfb\u53d6\u6700\u65b0\u63d0\u4ea4\u7684\u5185\u5bb9<\/p>\n<p>\u4ed3\u5e93\u4e2d\u7684\u914d\u7f6e\u6587\u4ef6\u4f1a\u88ab\u8f6c\u6362\u6210web\u63a5\u53e3\uff0c\u8bbf\u95ee\u53ef\u4ee5\u53c2\u7167\u4ee5\u4e0b\u7684\u89c4\u5219\uff1a<\/p>\n<ul>\n<li><code>\/{application}\/{profile}[\/{label}]<\/code><\/li>\n<li><code>\/{application}-{profile}.yml<\/code><\/li>\n<li><code>\/{label}\/{application}-{profile}.yml<\/code><\/li>\n<li><code>\/{application}-{profile}.properties<\/code><\/li>\n<li><code>\/{label}\/{application}-{profile}.properties<\/code><\/li>\n<\/ul>\n<p>\u4ee5<code>appblog-config-dev.properties<\/code>\u4e3a\u4f8b\u5b50\uff0c\u5b83\u7684<code>application<\/code>\u662f<code>appblog-config<\/code>\uff0c<code>profile<\/code>\u662f<code>dev<\/code>\u3002Client\u4f1a\u6839\u636e\u586b\u5199\u7684\u53c2\u6570\u6765\u9009\u62e9\u8bfb\u53d6\u5bf9\u5e94\u7684\u914d\u7f6e\u3002<\/p>\n<h2>Client\u7aef<\/h2>\n<p>\u4e3b\u8981\u5c55\u793a\u5982\u4f55\u5728\u4e1a\u52a1\u9879\u76ee\u4e2d\u53bb\u83b7\u53d6server\u7aef\u7684\u914d\u7f6e\u4fe1\u606f<\/p>\n<h3>\u6dfb\u52a0\u4f9d\u8d56<\/h3>\n<pre><code class=\"language-xml\">&lt;dependencies&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\n        &lt;artifactId&gt;spring-cloud-starter-config&lt;\/artifactId&gt;\n    &lt;\/dependency&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n        &lt;artifactId&gt;spring-boot-starter-web&lt;\/artifactId&gt;\n    &lt;\/dependency&gt;\n    &lt;dependency&gt;\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n        &lt;artifactId&gt;spring-boot-starter-test&lt;\/artifactId&gt;\n        &lt;scope&gt;test&lt;\/scope&gt;\n    &lt;\/dependency&gt;\n&lt;\/dependencies&gt;<\/code><\/pre>\n<p>\u5f15\u5165<code>spring-boot-starter-web<\/code>\u5305\u65b9\u4fbfweb\u6d4b\u8bd5<\/p>\n<h3>\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u9700\u8981\u914d\u7f6e\u4e24\u4e2a\u914d\u7f6e\u6587\u4ef6\uff1a<code>application.properties<\/code>\u548c<code>bootstrap.properties<\/code><\/p>\n<p><code>application.properties<\/code>\u5982\u4e0b\uff1a<\/p>\n<pre><code>spring.application.name=spring-cloud-config-client\nserver.port=8002<\/code><\/pre>\n<p>bootstrap.properties\u5982\u4e0b\uff1a<\/p>\n<pre><code>spring.cloud.config.name=appblog-config\nspring.cloud.config.profile=dev\nspring.cloud.config.uri=http:\/\/localhost:8001\/\nspring.cloud.config.label=master<\/code><\/pre>\n<ul>\n<li><code>spring.application.name<\/code>\uff1a\u5bf9\u5e94<code>{application}<\/code>\u90e8\u5206<\/li>\n<li><code>spring.cloud.config.profile<\/code>\uff1a\u5bf9\u5e94<code>{profile}<\/code>\u90e8\u5206<\/li>\n<li><code>spring.cloud.config.label<\/code>\uff1a\u5bf9\u5e94git\u7684\u5206\u652f\u3002\u5982\u679c\u914d\u7f6e\u4e2d\u5fc3\u4f7f\u7528\u7684\u662f\u672c\u5730\u5b58\u50a8\uff0c\u5219\u8be5\u53c2\u6570\u65e0\u7528<\/li>\n<li><code>spring.cloud.config.uri<\/code>\uff1a\u914d\u7f6e\u4e2d\u5fc3\u7684\u5177\u4f53\u5730\u5740<\/li>\n<li><code>spring.cloud.config.discovery.service-id<\/code>\uff1a\u6307\u5b9a\u914d\u7f6e\u4e2d\u5fc3\u7684<code>service-id<\/code>\uff0c\u4fbf\u4e8e\u6269\u5c55\u4e3a\u9ad8\u53ef\u7528\u914d\u7f6e\u96c6\u7fa4\u3002<\/li>\n<\/ul>\n<blockquote>\n<p>\u7279\u522b\u6ce8\u610f\uff1a\u4e0a\u9762\u8fd9\u4e9b\u4e0espring-cloud\u76f8\u5173\u7684\u5c5e\u6027\u5fc5\u987b\u914d\u7f6e\u5728<code>bootstrap.properties<\/code>\u4e2d\uff0cconfig\u90e8\u5206\u5185\u5bb9\u624d\u80fd\u88ab\u6b63\u786e\u52a0\u8f7d\u3002\u56e0\u4e3aconfig\u7684\u76f8\u5173\u914d\u7f6e\u4f1a\u5148\u4e8e<code>application.properties<\/code>\uff0c\u800c<code>bootstrap.properties<\/code>\u7684\u52a0\u8f7d\u4e5f\u662f\u5148\u4e8e<code>application.properties<\/code>\u3002<\/p>\n<\/blockquote>\n<h3>\u542f\u52a8\u7c7b<\/h3>\n<p>\u542f\u52a8\u7c7b\u53ea\u9700\u8981@SpringBootApplication\u6ce8\u89e3\u5c31\u53ef\u4ee5<\/p>\n<pre><code class=\"language-java\">@SpringBootApplication\npublic class ConfigClientApplication {\n\n    public static void main(String[] args) {\n        SpringApplication.run(ConfigClientApplication.class, args);\n    }\n}<\/code><\/pre>\n<h3>web\u6d4b\u8bd5<\/h3>\n<p>\u4f7f\u7528<code>@Value<\/code>\u6ce8\u89e3\u6765\u83b7\u53d6Server\u7aef\u53c2\u6570\u7684\u503c<\/p>\n<pre><code class=\"language-java\">@RestController\nclass HelloController {\n    @Value(&quot;${appblog.hello}&quot;)\n    private String hello;\n\n    @RequestMapping(&quot;\/hello&quot;)\n    public String from() {\n        return this.hello;\n    }\n}<\/code><\/pre>\n<p>\u542f\u52a8\u9879\u76ee\u540e\u8bbf\u95ee\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/localhost:8002\/hello\">http:\/\/localhost:8002\/hello<\/a> \uff0c\u8fd4\u56de\uff1a<code>Hello, I&#039;m dev update<\/code>\uff0c\u8bf4\u660e\u5df2\u7ecf\u6b63\u786e\u7684\u4eceServer\u7aef\u83b7\u53d6\u5230\u4e86\u53c2\u6570\u3002\u5230\u6b64\u4e00\u4e2a\u5b8c\u6574\u7684\u670d\u52a1\u7aef\u63d0\u4f9b\u914d\u7f6e\u670d\u52a1\uff0c\u5ba2\u6237\u7aef\u83b7\u53d6\u914d\u7f6e\u53c2\u6570\u7684\u4f8b\u5b50\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<p>\u6211\u4eec\u518d\u8fdb\u884c\u4e00\u4e9b\u5c0f\u5b9e\u9a8c\uff0c\u624b\u52a8\u4fee\u6539<code>appblog-config-dev.properties<\/code>\u4e2d\u914d\u7f6e\u4fe1\u606f\u4e3a\uff1a<code>appblog.hello=Hello, I&#039;m dev update more<\/code>\uff0c\u63d0\u4ea4\u5230Github\uff0c\u518d\u6b21\u5728\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/localhost:8002\/hello \uff0c\u8fd4\u56de\uff1a<code>appblog.hello: Hello, I&#039;m dev update<\/code>\uff0c\u8bf4\u660e\u83b7\u53d6\u7684\u4fe1\u606f\u8fd8\u662f\u65e7\u7684\u53c2\u6570\uff0c\u8fd9\u662f\u4e3a\u4ec0\u4e48\u5462\uff1f\u56e0\u4e3aSpring Boot\u9879\u76ee\u53ea\u6709\u5728\u542f\u52a8\u7684\u65f6\u5019\u624d\u4f1a\u83b7\u53d6\u914d\u7f6e\u6587\u4ef6\u7684\u503c\uff0c\u4fee\u6539Github\u4fe1\u606f\u540e\uff0cClient\u7aef\u5e76\u6ca1\u6709\u518d\u6b21\u53bb\u83b7\u53d6\uff0c\u6240\u4ee5\u5bfc\u81f4\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740\u7ebf\u4e0a\u9879\u76ee\u53d8\u7684\u65e5\u76ca\u5e9e\u5927\uff0c\u6bcf\u4e2a\u9879\u76ee\u90fd\u6563\u843d\u7740\u5404\u79cd\u914d\u7f6e\u6587\u4ef6\uff0c\u5982\u679c\u91c7\u7528\u5206\u5e03\u5f0f\u7684\u5f00\u53d1\u6a21\u5f0f\uff0c\u9700\u8981\u7684\u914d\u7f6e\u6587\u4ef6\u968f\u7740\u670d\u52a1\u589e\u52a0\u800c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-886","post","type-post","status-publish","format-standard","hentry","category-spring-cloud"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=886"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/886\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}