{"id":2957,"date":"2018-08-05T14:05:59","date_gmt":"2018-08-05T06:05:59","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2957"},"modified":"2018-08-05T14:17:28","modified_gmt":"2018-08-05T06:17:28","slug":"spring-cloud-%e6%95%99%e7%a8%8b%e7%ac%ac%e4%ba%8c%e7%ab%a0-%e6%9c%8d%e5%8a%a1%e7%9a%84%e6%b3%a8%e5%86%8c%e3%80%81%e5%8f%91%e7%8e%b0%e3%80%81%e6%b2%bb%e7%90%86%e4%b9%8b-eureka-%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2957","title":{"rendered":"Spring Cloud \u6559\u7a0b\u7b2c\u4e8c\u7ae0 \u670d\u52a1\u7684\u6ce8\u518c\u3001\u53d1\u73b0\u3001\u6cbb\u7406\u4e4b Eureka \u5b9e\u6218"},"content":{"rendered":"<p>\n\t\u6839\u636e Spring Cloud \u7684\u5b98\u65b9\u6587\u6863\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230&nbsp;Eureka \u6392\u5728\u524d\u9762\u3002\u8fd9\u662f\u56e0\u4e3a\u5fae\u670d\u52a1\u67b6\u6784\uff0c\u79bb\u4e0d\u5f00\u670d\u52a1\u7684\u6ce8\u518c\uff0c\u6cbb\u7406\u4e0e\u53d1\u73b0\u3002\u56e0\u6b64\u8fd9\u4e5f\u662f\u5f88\u591a\u6587\u7ae0\u5c06 Eureka \u6392\u5728\u7b2c\u4e00\u6765\u5199\u7684\u539f\u56e0\u3002\u672c\u6587\u4e3b\u8981\u5199 Eureka \u7684\u5355\u673a\u5b9e\u4f8b\uff0c\u5305\u542b\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u3002\n<\/p>\n<p>\n\t\u672c\u7cfb\u5217\u6587\u7ae0\u90fd\u662f\u5728 idea \u4e0b\u8fdb\u884c\u7684\u4ee3\u7801\u7f16\u5199\uff0c\u6700\u7ec8\u6e90\u7801\u90fd\u4e0a\u4f20\u5230\u4e86\u6211\u7684 <a href=\"https:\/\/github.com\/xmt1139057136\/xttblog-cloud\" name=\"xttblog-cloud\" target=\"_blank\" title=\"xttblog-cloud\">github<\/a>\u3002\n<\/p>\n<p>\n\t\u5728\u5f00\u59cb Eureka \u4e4b\u524d\uff0c\u5b98\u65b9\u82b1\u4e86\u5927\u529b\u6c14\u7684\u5728\u5ba3\u8bb2&nbsp;@EnableDiscoveryClient \u4ee5\u53ca RestTemplate\u3002\u56e0\u4e3a Eureka \u5c31\u79bb\u4e0d\u5f00\u8fd9\u4e24\u4e2a\u7ec4\u4ef6\u3002\u4e0b\u9762\u6211\u4eec\u4e00\u8d77\u771f\u6b63\u5f00\u542f Spring Cloud \u5fae\u670d\u52a1\u4e4b\u65c5\u5427\uff01\n<\/p>\n<p>\n\t\u9996\u5148\uff0c\u4f7f\u7528 idea \u6216 eclipse \u65b0\u5efa\u4e00\u4e2a maven \u9879\u76ee xttblog-eureka-server\u3002\u4e0d\u77e5\u9053\u5177\u4f53\u600e\u4e48\u5efa\u9879\u76ee\u7684\u53ef\u4ee5\u770b\u6211\u524d\u9762\u7684\u6587\u7ae0\u300a<a href=\"https:\/\/www.xttblog.com\/?p=2659\" title=\"\u4f7f\u7528 Maven \u521b\u5efa SpringBoot \u9879\u76ee - \u4e1a\u4f59\u8349\">\u4f7f\u7528 Maven \u521b\u5efa SpringBoot \u9879\u76ee<\/a>\u300b\uff0c\u5982\u679c\u4f60\u662f\u5bfc\u5165\u9879\u76ee\u5230 idea \u5931\u8d25\uff0c\u53ef\u4ee5\u770b\u6211\u7684\u8fd9\u4e9b\u6587\u7ae0\u300a<a href=\"https:\/\/www.xttblog.com\/?p=2708\" title=\"\u89e3\u51b3 maven \u9879\u76ee idea \u65e0\u6cd5\u5bfc\u5165\u95ee\u9898 - \u4e1a\u4f59\u8349\">\u89e3\u51b3 maven \u9879\u76ee idea \u65e0\u6cd5\u5bfc\u5165\u95ee\u9898<\/a>\u300b\u3001\u300a<a href=\"https:\/\/www.xttblog.com\/?p=2557\" title=\"\u89e3\u51b3 IDEA \u5bfc\u5165 Springboot \u9879\u76ee\u62a5cannot be resolved to a type\u9519\u8bef - \u4e1a\u4f59\u8349\">\u89e3\u51b3 IDEA \u5bfc\u5165 Springboot \u9879\u76ee\u62a5cannot be resolved to a type\u9519\u8bef<\/a>\u300b\u3001\u300a<a href=\"https:\/\/www.xttblog.com\/?p=2876\" title=\"\u89e3\u51b3 idea \u63d0\u793a This file is indented with tabs instead of 4 spaces \u95ee\u9898 - \u4e1a\u4f59\u8349\">\u89e3\u51b3 idea \u63d0\u793a This file is indented with tabs instead of 4 spaces \u95ee\u9898<\/a>\u300b\u7136\u540e\u5728 pom.xml \u4e2d\u5f15\u5165\u4ee5\u4e0b\u7684\u914d\u7f6e\uff1a\n<\/p>\n<pre>\r\n&lt;parent&gt;\r\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;spring-boot-starter-parent&lt;\/artifactId&gt;\r\n    &lt;version&gt;1.5.13.RELEASE&lt;\/version&gt;\r\n&lt;\/parent&gt;\r\n\r\n&lt;dependencyManagement&gt;\r\n    &lt;dependencies&gt;\r\n        &lt;dependency&gt;\r\n            &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\r\n            &lt;artifactId&gt;spring-cloud-dependencies&lt;\/artifactId&gt;\r\n            &lt;version&gt;Edgware.SR4&lt;\/version&gt;\r\n            &lt;type&gt;pom&lt;\/type&gt;\r\n            &lt;scope&gt;import&lt;\/scope&gt;\r\n        &lt;\/dependency&gt;\r\n    &lt;\/dependencies&gt;\r\n&lt;\/dependencyManagement&gt;\r\n&lt;dependencies&gt;\r\n    &lt;dependency&gt;\r\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;spring-cloud-starter&lt;\/artifactId&gt;\r\n    &lt;\/dependency&gt;\r\n\r\n    &lt;dependency&gt;\r\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;spring-cloud-starter-eureka-server&lt;\/artifactId&gt;\r\n    &lt;\/dependency&gt;\r\n\r\n    &lt;dependency&gt;\r\n        &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;spring-boot-starter-test&lt;\/artifactId&gt;\r\n        &lt;scope&gt;test&lt;\/scope&gt;\r\n    &lt;\/dependency&gt;\r\n&lt;\/dependencies&gt;<\/pre>\n<p>\n\t\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u8fd9\u91cc\u7684\u6848\u4f8b Spring Cloud \u4f7f\u7528\u7684\u662f&nbsp;Edgware.SR4 \u7248\u672c\uff0c\u5bf9\u5e94\u7684 Spring Boot \u7248\u672c\u4e5f\u5c31\u662f&nbsp;1.5.13.RELEASE\u3002\n<\/p>\n<p>\n\t\u505a\u5b8c pom.xml \u914d\u7f6e\u540e\uff0c\u6211\u4eec\u5728\u521b\u5efa\u4e00\u4e2a EurekaServerApplication\uff0c\u4f5c\u4e3a\u6574\u4e2a\u670d\u52a1\u53d1\u73b0\u7a0b\u5e8f\u7684 main \u5165\u53e3\u3002\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\n@SpringBootApplication\r\n@EnableEurekaServer\r\npublic class EurekaServerApplication {\r\n\tpublic static void main(String[] args) {\r\n\t\tSpringApplication.run(EurekaServerApplication.class, args);\r\n\t}\r\n}<\/pre>\n<p>\n\t\u5728\u5b98\u65b9\u6587\u6863\u7684&nbsp;How to Run a Eureka Server \u7ae0\u8282\u4e2d\uff0c\u4ee3\u7801\u53ef\u80fd\u548c\u6211\u4eec\u7684\u4e0d\u4e00\u6837\uff0c\u4e0d\u8fc7\u4f5c\u7528\u90fd\u662f\u4e00\u6837\u7684\u3002\u5982\u679c\u4f60\u7ffb\u770b\u4e86\u6e90\u7801\u7684\u8bdd\uff0c\u53d1\u73b0\u4e24\u8005\u7528\u6cd5\u76f8\u540c\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\n@SpringBootApplication\r\n@EnableEurekaServer\r\npublic class EurekaServerApplication {\r\n    public static void main(String[] args) {\r\n        new SpringApplicationBuilder(EurekaServerApplication.class).web(true).run(args);\r\n    }\r\n}<\/pre>\n<p>\n\t\u6700\u540e\u5c31\u662f\u5728 resoure \u76ee\u5f55\u4e0b\uff0c\u65b0\u5efa\u4e00\u4e2a application.yml \u6587\u4ef6\uff0c\u52a0\u5165\u4e0b\u9762\u7684\u914d\u7f6e\uff1a\n<\/p>\n<pre class=\"brush:plain;\">\r\nserver:\r\n  port: 8761\r\n\r\neureka:\r\n  instance:\r\n    hostname: localhost\r\n  client:\r\n    registerWithEureka: false\r\n    fetchRegistry: false\r\n    serviceUrl:\r\n      defaultZone: http:\/\/${eureka.instance.hostname}:${server.port}\/eureka\/<\/pre>\n<p>\n\t\u4e0a\u9762\u7684 port \u5c31\u662f \u914d\u7f6e\u7684 Eureka \u7684\u7aef\u53e3\u3002hostname \u5c31\u662f\u4e3b\u673a\u540d\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0\u300a<a href=\"https:\/\/blog.csdn.net\/shog808\/article\/details\/77161071\" name=\"springcloud\u4e4beureka\u914d\u7f6e\u2014\u2014eureka.instance\" target=\"_blank\" title=\"springcloud\u4e4beureka\u914d\u7f6e\u2014\u2014eureka.instance\">springcloud\u4e4beureka\u914d\u7f6e&mdash;&mdash;eureka.instance<\/a>\u300b\u3002\n<\/p>\n<p>\n\t\u914d\u7f6e\u89e3\u91ca\uff1a\n<\/p>\n<ul>\n<li>\n\t\teureka.client.registerWithEureka\uff1a\u8868\u793a\u662f\u5426\u5c06\u81ea\u5df1\u6ce8\u518c\u5230Eureka Server\uff0c\u9ed8\u8ba4\u4e3atrue\u3002\u7531\u4e8e\u5f53\u524d\u5e94\u7528\u5c31\u662fEureka Server\uff0c\u6545\u800c\u8bbe\u7f6e\u4e3afalse\u3002\n\t<\/li>\n<li>\n\t\teureka.client.fetchRegistry\uff1a\u8868\u793a\u662f\u5426\u4eceEureka Server\u83b7\u53d6\u6ce8\u518c\u4fe1\u606f\uff0c\u9ed8\u8ba4\u4e3atrue\u3002\u56e0\u4e3a\u8fd9\u662f\u4e00\u4e2a\u5355\u70b9\u7684Eureka Server\uff0c\u4e0d\u9700\u8981\u540c\u6b65\u5176\u4ed6\u7684Eureka Server\u8282\u70b9\u7684\u6570\u636e\uff0c\u6545\u800c\u8bbe\u7f6e\u4e3afalse\u3002\n\t<\/li>\n<li>\n\t\teureka.client.serviceUrl.defalseZone\uff1a\u8bbe\u7f6e\u4e0eEureka Server\u4ea4\u4e92\u7684\u5730\u5740\uff0c\u67e5\u8be2\u670d\u52a1\u548c\u6ce8\u518c\u670d\u52a1\u90fd\u9700\u8981\u4f9d\u8d56\u8fd9\u4e2a\u5730\u5740\uff0c\u591a\u4e2a\u5730\u5740\u53ef\u7528\uff0c\u7528\uff0c\u5206\u5272\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u8fd9\u91cc\u8bf4\u4e00\u4e0b\uff0c\u5173\u4e8e Eureka Server \u7684\u96c6\u7fa4\u914d\u7f6e\uff0c\u6211\u4eec\u540e\u9762\u4f1a\u6709\u5355\u72ec\u7684\u7ae0\u8282\u6765\u5199\u3002\n<\/p>\n<p>\n\t\u505a\u5b8c\u4e0a\u9762\u7684\u914d\u7f6e\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u8fd0\u884c\u9879\u76ee\u4e86\uff0c\u7b49\u9879\u76ee\u542f\u52a8\u6210\u529f\u540e\uff0c\u6211\u4eec\u8bbf\u95ee http:\/\/localhost:8761 \u5c31\u80fd\u770b\u5230 Eureka \u7684\u670d\u52a1\u7ba1\u7406\u9875\u9762\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Eureka \u6ce8\u518c\u4e2d\u5fc3\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/eureka01.png\" style=\"width: 720px;height: 446px\" \/>\n<\/p>\n<p>\n\t\u4ece\u4e0a\u56fe\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u73b0\u5728\u4e00\u4e2a\u670d\u52a1\u4e5f\u6ca1\u6709\u3002\u672c\u6587\u4e0a\u9762\u7684\u8fd9\u4e2a\u9879\u76ee\uff0c\u6211\u4eec\u662f\u6ca1\u6709\u628a\u5b83\u672c\u8eab\u4f5c\u4e3a\u5ba2\u6237\u7aef\u6765\u6ce8\u518c\u7684\u3002\n<\/p>\n<p>\n\t\u4e0b\u9762\u6211\u4eec\u5728\u65b0\u5efa\u4e00\u4e2a Maven \u5de5\u7a0b xttblog-eureka-client\uff0c\u5c06\u5176\u4f5c\u4e3a Eureka Client \u6ce8\u518c\u5230 Eureka Server\u3002\u5176 pom.xml \u914d\u7f6e\u6587\u4ef6\u7684\u5185\u5bb9\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;parent&gt;\r\n    &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;spring-boot-starter-parent&lt;\/artifactId&gt;\r\n    &lt;version&gt;1.5.13.RELEASE&lt;\/version&gt;\r\n&lt;\/parent&gt;\r\n&lt;dependencyManagement&gt;\r\n    &lt;dependencies&gt;\r\n        &lt;dependency&gt;\r\n            &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\r\n            &lt;artifactId&gt;spring-cloud-dependencies&lt;\/artifactId&gt;\r\n            &lt;version&gt;Edgware.SR4&lt;\/version&gt;\r\n            &lt;type&gt;pom&lt;\/type&gt;\r\n            &lt;scope&gt;import&lt;\/scope&gt;\r\n        &lt;\/dependency&gt;\r\n    &lt;\/dependencies&gt;\r\n&lt;\/dependencyManagement&gt;\r\n&lt;dependencies&gt;\r\n    &lt;dependency&gt;\r\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;spring-cloud-starter-config&lt;\/artifactId&gt;\r\n    &lt;\/dependency&gt;\r\n    &lt;dependency&gt;\r\n        &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;spring-cloud-starter-eureka&lt;\/artifactId&gt;\r\n    &lt;\/dependency&gt;\r\n&lt;\/dependencies&gt;<\/pre>\n<p>\n\t\u7136\u540e\u662f application.yml\uff0c\u548c\u524d\u9762\u7684\u5185\u5bb9\u7565\u6709\u4e0d\u540c\u3002\n<\/p>\n<pre class=\"brush:plain;\">\r\nserver:\r\n  port: 8760\r\n\r\neureka:\r\n  instance:\r\n    hostname: localhost\r\n  client:\r\n    serviceUrl:\r\n      defaultZone: http:\/\/${eureka.instance.hostname}:8761\/eureka\/\r\n\r\nspring:\r\n  application:\r\n    name: xttblog-eureka-client<\/pre>\n<p>\n\t\u7136\u540e\u662f\u542f\u52a8\u7c7b\u7684\u4ee3\u7801\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\npackage com.xttblog;\r\n\r\nimport org.springframework.boot.SpringApplication;\r\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\r\nimport org.springframework.cloud.client.discovery.EnableDiscoveryClient;\r\n\r\n\/**\r\n * EurekaClientApplication\r\n *\r\n * @author xtt\r\n * @date 2018\/8\/5 \u4e0b\u53481:54\r\n *\/\r\n@SpringBootApplication\r\n@EnableDiscoveryClient\r\npublic class EurekaClientApplication {\r\n    public static void main(String[] args) {\r\n        SpringApplication.run(EurekaClientApplication.class, args);\r\n    }\r\n}<\/pre>\n<p>\n\t\u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u628a\u4e24\u4e2a\u9879\u76ee\u5206\u522b\u542f\u52a8\u8d77\u6765\u3002\u6ce8\u610f\uff0c\u5148\u542f\u52a8\u7b2c\u4e00\u4e2a\u9879\u76ee\uff0c\u5728\u542f\u52a8\u7b2c\u4e8c\u4e2a\u9879\u76ee\u3002\u6700\u540e\u5728\u8bbf\u95ee http:\/\/localhost:8761\uff0c\u4f60\u5c31\u4f1a\u53d1\u73b0\u6709\u4e00\u4e2a\u670d\u52a1\u6ce8\u518c\u8fdb\u6765\u4e86\u3002\n<\/p>\n<p>\n\t\u6700\u540e\u5728\u8bf4\u4e00\u4e2a\u95ee\u9898\uff0c\u4f60\u53ef\u80fd\u5728\u6d4b\u8bd5 Eureka \u7684\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u73b0\u63d0\u793a&ldquo;<font color=\"red\" size=\"+1\"><b>EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY&#039;RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE INSTANCES ARE NOT BEING EXPIRED JUST TO BE SAFE.<\/b><\/font>&rdquo;\uff0c\u5173\u4e8e\u8fd9\u4e2a\u63d0\u793a\uff0c\u5927\u5bb6\u53ef\u4ee5\u53c2\u8003\u6211\u7684\u8fd9\u7bc7\u6587\u7ae0\u300a<a href=\"https:\/\/www.xttblog.com\/?p=2828\" title=\"\u89e3\u51b3 Eureka Server \u4e0d\u8e22\u51fa\u5df2\u5173\u505c\u7684\u8282\u70b9\u95ee\u9898\u7684\u65b9\u6cd5 - \u4e1a\u4f59\u8349\">\u89e3\u51b3 Eureka Server \u4e0d\u8e22\u51fa\u5df2\u5173\u505c\u7684\u8282\u70b9\u95ee\u9898\u7684\u65b9\u6cd5<\/a>\u300b\u3002\u53e6\u5916\u5173\u4e8e Eureka \u96c6\u7fa4\u7684\u77e5\u8bc6\uff0c\u6211\u4eec\u4e0b\u7ae0\u518d\u8bb2\uff01\n<\/p>\n<p>\n\t\u672c\u6587\u6e90\u7801\u53ef\u4ee5\u5728&nbsp;<a href=\"https:\/\/github.com\/xmt1139057136\/xttblog-cloud\" name=\"\u4e1a\u4f59\u8349 Spring Cloud \u6559\u7a0b\" target=\"_blank\" title=\"\u4e1a\u4f59\u8349 Spring Cloud \u6559\u7a0b\">https:\/\/github.com\/xmt1139057136\/xttblog-cloud<\/a> \u67e5\u770b\u548c\u4e0b\u8f7d\uff01\n<\/p>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n<p>\n\t\t\t<a href=\"http:\/\/cloud.spring.io\/spring-cloud-static\/Edgware.SR4\/single\/spring-cloud.html\" name=\"Spring Cloud\" target=\"_blank\" title=\"Spring Cloud\">http:\/\/cloud.spring.io\/spring-cloud-static\/Edgware.SR4\/single\/spring-cloud.html<\/a>\n\t\t<\/p>\n<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2957\">Spring Cloud \u6559\u7a0b\u7b2c\u4e8c\u7ae0 \u670d\u52a1\u7684\u6ce8\u518c\u3001\u53d1\u73b0\u3001\u6cbb\u7406\u4e4b Eureka \u5b9e\u6218<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6839\u636e Spring Cloud \u7684\u5b98\u65b9\u6587\u6863\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230&nbsp;Eureka \u6392\u5728\u524d\u9762\u3002\u8fd9\u662f\u56e0\u4e3a\u5fae\u670d\u52a1\u67b6\u6784 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1642,587,588,216,581],"class_list":["post-2957","post","type-post","status-publish","format-standard","hentry","category-java","tag-eureka","tag-spring-boot","tag-spring-cloud","tag-216","tag-581"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2957"}],"version-history":[{"count":3,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2957\/revisions"}],"predecessor-version":[{"id":2960,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2957\/revisions\/2960"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}