{"id":3081,"date":"2018-09-17T19:00:00","date_gmt":"2018-09-17T11:00:00","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=3081"},"modified":"2018-09-17T19:00:00","modified_gmt":"2018-09-17T11:00:00","slug":"spring-cloud-%e6%95%99%e7%a8%8b%e7%ac%ac%e5%8d%81%e5%85%ad%e7%ab%a0-%e8%87%aa%e5%ae%9a%e4%b9%89-eureka-%e6%9c%8d%e5%8a%a1%e5%88%97%e8%a1%a8%e9%a1%b5%e9%9d%a2%ef%bc%8c%e6%b1%89%e5%8c%96-eureka","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=3081","title":{"rendered":"Spring Cloud \u6559\u7a0b\u7b2c\u5341\u516d\u7ae0 \u81ea\u5b9a\u4e49 Eureka \u670d\u52a1\u5217\u8868\u9875\u9762\uff0c\u6c49\u5316 Eureka"},"content":{"rendered":"<p>\n\t\u81ea\u4ece\u5b66 Spring Cloud \u7684\u7b2c\u4e00\u5929\u8d77\u5c31\u611f\u89c9 Eureka \u7684\u754c\u9762\u6781\u4e11\uff08\u4e25\u91cd\u4e86\uff0c\u5176\u5b9e\u662f\u82f1\u6587\u4e0d\u7b26\u5408\u6211\u7684\u4e2a\u4eba\u4e60\u60ef\uff09\uff0c\u5c31\u60f3\u7ed9\u5979\u7f8e\u5316\u4e00\u4e0b\u3002\u6700\u8fd1\u4e24\u5929\u7ec8\u4e8e\u62bd\u51fa\u4e86\u65f6\u95f4\uff0c\u5c31\u7ed9 Eureka \u7684 web \u9875\u9762\u505a\u4e86\u4e00\u6b21\u7f8e\u5bb9\uff0c\u672c\u6587\u5c06\u4f18\u5316 Eureka \u670d\u52a1\u5217\u8868\uff0c\u6c49\u5316 Eureka \u7684\u9875\u9762\u7684\u65b9\u6cd5\u63a8\u8350\u7ed9\u5927\u5bb6\uff01\n<\/p>\n<p>\n\t\u8981\u6c49\u5316 Eureka \u7684 web \u9875\u9762\uff0c\u9996\u5148\u5fc5\u987b\u8981\u627e\u5230 Eureka \u539f\u6765\u7684 web \u9875\u9762\u3002\u7ecf\u8fc7\u4e00\u756a\u67e5\u627e\uff0c\u53d1\u73b0\u5176\u4e2d\u7684 web \u9875\u9762\u6e90\u7801\u4f4d\u4e8e spring-cloud-netflix-eureka-serve \u4e2d\uff0c\u5177\u4f53\u5c31\u662f\u5728 templates\/eureka \u76ee\u5f55\u4e2d\u3002\n<\/p>\n<p>\n\t\u53d1\u73b0\u4e86\u5177\u4f53\u7684\u4f4d\u7f6e\u5c31\u597d\u505a\u4e86\uff0c\u6211\u4eec\u5728 &nbsp;Eureka Server \u7aef\u7684 resources \u76ee\u524d\u4e0b\uff0c\u5c06\u539f\u6765\u7684\u9759\u6001\u6587\u4ef6\u548c ftl \u6a21\u7248\u6587\u4ef6\u590d\u5236\u8fc7\u6765\u3002\u7136\u540e\u5c06 ftl \u6587\u4ef6\u6c49\u5316\u5373\u53ef\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Eureka \u9759\u6001\u8d44\u6e90\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/eureka-resoure.png\" style=\"width: 240px;height: 180px\" \/>\n<\/p>\n<p>\n\t\u6c49\u5316\u5b8c\u4e86\u4ee5\u540e\uff0c\u91cd\u542f Eureka Server\uff0c\u5728\u6d4f\u89c8\u5668\u91cc\u8bbf\u95ee http:\/\/localhost:8761\/ \u5c31\u53ef\u4ee5\u770b\u5230\u754c\u9762\u7ecf\u8fc7\u6211\u4eec\u7f8e\u5316\u8fc7\u4e86\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Eureka \u6c49\u5316\u754c\u9762\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/xttblog-eureka-server-cn.png\" style=\"width: 1412px;height: 559px\" \/>\n<\/p>\n<p>\n\t\u6574\u4e2a\u6c49\u5316\u8fc7\u7a0b\u975e\u5e38\u7684\u7b80\u5355\uff0cpom.xml \u4e2d\u7684\u914d\u7f6e\u5b8c\u5168\u4e0d\u9700\u8981\u6539\u52a8\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u8003\uff1a<a href=\"https:\/\/github.com\/xmt1139057136\/xttblog-cloud\/tree\/master\/xttblog-config-server\" name=\"Spring cloud eureka\" target=\"_blank\" title=\"Spring cloud eureka\">https:\/\/github.com\/xmt1139057136\/xttblog-cloud\/tree\/master\/xttblog-config-server<\/a> \u4e2d\u7684 pom.xml \u6587\u4ef6\u3002\n<\/p>\n<p>\n\t\u540c\u6837\u7684\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5bf9 logo\uff0c\u767b\u5f55\u8ba4\u8bc1\u9875\u9762\u7b49\u8fdb\u884c\u5168\u90e8\u7684\u6574\u6539\uff0c\u6539\u5230\u4f60\u6ee1\u610f\u4e3a\u6b62\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u81ea\u5b9a\u4e49 Eureka \u754c\u9762\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/eureka-ui.png\" style=\"width: 688px;height: 439px\" \/>\n<\/p>\n<p>\n\t\u7c7b\u4f3c\u6211\u4eec\u76ee\u524d\u6b63\u5728\u505a\u7684\u9879\u76ee\uff0c\u4e0a\u56fe\u662f\u4e0d\u662f\u5c31\u5f88\u7b26\u5408\u5927\u5bb6\u7684\u9884\u671f\u4e86\u3002\n<\/p>\n<p>\n\t\u6700\u540e\u60f3\u8981\u6e90\u7801\u7684\uff0c\u53ef\u4ee5\u626b\u63cf\u4e0b\u65b9\u4e8c\u7ef4\u7801\uff0c\u5173\u6ce8&ldquo;\u4e1a\u4f59\u8349&rdquo;\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u56de\u590d\uff1a&ldquo;eureka-ui&rdquo;\u5373\u53ef\u514d\u8d39\u4e0b\u8f7d\uff01<\/p>\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=3081\">Spring Cloud \u6559\u7a0b\u7b2c\u5341\u516d\u7ae0 \u81ea\u5b9a\u4e49 Eureka \u670d\u52a1\u5217\u8868\u9875\u9762\uff0c\u6c49\u5316 Eureka<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u81ea\u4ece\u5b66 Spring Cloud \u7684\u7b2c\u4e00\u5929\u8d77\u5c31\u611f\u89c9 Eureka \u7684\u754c\u9762\u6781\u4e11\uff08\u4e25\u91cd\u4e86\uff0c\u5176\u5b9e\u662f\u82f1\u6587\u4e0d\u7b26\u5408\u6211\u7684\u4e2a\u4eba [&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,648,48],"class_list":["post-3081","post","type-post","status-publish","format-standard","hentry","category-java","tag-eureka","tag-spring-boot","tag-spring-cloud","tag-vue","tag-web"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3081","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=3081"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3081\/revisions"}],"predecessor-version":[{"id":3082,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/3081\/revisions\/3082"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}