{"id":2141,"date":"2018-11-04T01:18:48","date_gmt":"2018-11-03T17:18:48","guid":{"rendered":"https:\/\/damogame.cn:15443\/wordpress\/?p=2141"},"modified":"2018-11-04T01:18:48","modified_gmt":"2018-11-03T17:18:48","slug":"%e9%98%bf%e9%87%8c%e5%b7%b4%e5%b7%b4%e5%bc%80%e6%ba%90-spring-cloud-alibaba%ef%bc%8c%e5%8a%a0%e7%a0%81%e5%be%ae%e6%9c%8d%e5%8a%a1%e7%94%9f%e6%80%81%e5%bb%ba%e8%ae%be","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/2141","title":{"rendered":"\u963f\u91cc\u5df4\u5df4\u5f00\u6e90 Spring Cloud Alibaba\uff0c\u52a0\u7801\u5fae\u670d\u52a1\u751f\u6001\u5efa\u8bbe"},"content":{"rendered":"<div class=\"extra ui horizontal list meta-wrap\">\n<div class=\"item comment-count\">\u672c\u5468\uff0cSpring Cloud\u8054\u5408\u521b\u59cb\u4ebaSpencer Gibb\u5728Spring\u5b98\u7f51\u7684\u535a\u5ba2\u9875\u9762\u5ba3\u5e03\uff1a\u963f\u91cc\u5df4\u5df4\u5f00\u6e90 Spring Cloud Alibaba\uff0c\u5e76\u53d1\u5e03\u4e86\u9996\u4e2a\u9884\u89c8\u7248\u672c\u3002\u968f\u540e\uff0cSpring Cloud \u5b98\u65b9Twitter\u4e5f\u53d1\u5e03\u4e86\u6b64\u6d88\u606f\uff0c\u4ee5\u4e0b\u7ffb\u8bd1\u81ea\u535a\u5ba2\u539f\u6587\u3002<\/div>\n<\/div>\n<div id=\"articleContent\" class=\"content\">\n<p><img decoding=\"async\" src=\"https:\/\/static.oschina.net\/uploads\/space\/2018\/1102\/103124_VX5Q_2720166.png\" \/><\/p>\n<p>\u5927\u5bb6\u597d\uff0c\u5f88\u9ad8\u5174\u5730\u544a\u8bc9\u5927\u5bb6\uff0c\u4eca\u5929 Spring Cloud Alibaba \u7684\u7b2c\u4e00\u4e2a\u7248\u672c\u53d1\u5e03\u4e86\u3002<\/p>\n<p>Spring Cloud Alibaba\u9879\u76ee\u7531\u4e24\u90e8\u5206\u7ec4\u6210\uff1a\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u7ec4\u4ef6\u548c\u963f\u91cc\u4e91\u4ea7\u54c1\u7ec4\u4ef6\uff0c\u65e8\u5728\u4e3aJava\u5f00\u53d1\u4eba\u5458\u5728\u4f7f\u7528\u963f\u91cc\u5df4\u5df4\u4ea7\u54c1\u7684\u540c\u65f6\uff0c\u901a\u8fc7\u5229\u7528 Spring \u6846\u67b6\u7684\u8bbe\u8ba1\u6a21\u5f0f\u548c\u62bd\u8c61\u80fd\u529b\uff0c\u6ce8\u5165Spring Boot\u548cSpring Cloud\u7684\u4f18\u52bf\u3002<\/p>\n<blockquote><p>Spring Cloud Alibaba \u9879\u76ee\u662f\u7531\u963f\u91cc\u5df4\u5df4\u7ef4\u62a4\u7684\u793e\u533a\u9879\u76ee\u3002<\/p>\n<p>\u6ce8\u610f\uff1a \u7248\u672c 0.2.0.RELEASE \u5bf9\u5e94\u7684\u662f Spring Boot 2.x \u7248\u672c\uff0c\u7248\u672c 0.1.0.RELEASE \u5bf9\u5e94\u7684\u662f Spring Boot 1.x \u7248\u672c.<\/p><\/blockquote>\n<h2><strong>\u4e00\u3001\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u7ec4\u4ef6<\/strong><\/h2>\n<p>\u5176\u4e2d\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u7ec4\u4ef6\u7684\u547d\u540d\u524d\u7f00\u4e3a<code>spring-cloud-alibaba<\/code>\uff0c\u63d0\u4f9b\u4e86\u5982\u4e0b\u7279\u6027\uff1a<\/p>\n<h4><strong>| \u670d\u52a1\u53d1\u73b0<\/strong><\/h4>\n<p>\u5b9e\u73b0\u4e86 Spring Cloud common \u4e2d\u5b9a\u4e49\u7684 registry \u76f8\u5173\u89c4\u8303\u63a5\u53e3\uff0c\u5f15\u5165\u4f9d\u8d56\u5e76\u6dfb\u52a0\u4e00\u4e9b\u7b80\u5355\u7684\u914d\u7f6e\u5373\u53ef\u5c06\u4f60\u7684\u670d\u52a1\u6ce8\u518c\u5230Nacos Server\u4e2d\uff0c\u5e76\u4e14\u652f\u6301\u4e0eRibbon\u7684\u96c6\u6210\u3002<\/p>\n<h4><strong>| \u914d\u7f6e\u7ba1\u7406<\/strong><\/h4>\n<p>\u5b9e\u73b0\u4e86\u00a0<code>PropertySoureLocator<\/code>\u00a0\u63a5\u53e3\uff0c\u5f15\u5165\u4f9d\u8d56\u5e76\u6dfb\u52a0\u4e00\u4e9b\u7b80\u5355\u7684\u914d\u7f6e\u5373\u53ef\u4ece Nacos Server \u4e2d\u83b7\u53d6\u5e94\u7528\u914d\u7f6e\u5e76\u8bbe\u7f6e\u5728 Spring \u7684 Environment \u4e2d\uff0c\u800c\u4e14\u65e0\u9700\u4f9d\u8d56\u5176\u4ed6\u7ec4\u4ef6\u5373\u53ef\u652f\u6301\u914d\u7f6e\u7684\u5b9e\u65f6\u63a8\u9001\u548c\u63a8\u9001\u72b6\u6001\u67e5\u8be2\u3002<\/p>\n<h4><strong>| \u9ad8\u53ef\u7528\u9632\u62a4<\/strong><\/h4>\n<p>\u9ed8\u8ba4\u96c6\u6210\u4e86 Servlet\u3001RestTemplate\u3001Dubbo\u3001RocketMQ \u7684\u9650\u6d41(Flow Control)\u964d\u7ea7(Circuit Breaking and Concurrency)\uff0c\u53ea\u9700\u8981\u5f15\u5165\u4f9d\u8d56\u5373\u53ef\u5b8c\u6210\u9650\u6d41\u964d\u7ea7\u7684\u96c6\u6210\u52a8\u4f5c\uff0c\u5e76\u652f\u6301\u5728\u5e94\u7528\u8fd0\u884c\u72b6\u6001\u4e0b\u901a\u8fc7 Sentinel \u63a7\u5236\u53f0\u6765\u5b9e\u65f6\u4fee\u6539\u9650\u6d41\u964d\u7ea7\u7684\u7b56\u7565\u548c\u9608\u503c\u3002<\/p>\n<h2>\u4e8c\u3001\u963f\u91cc\u4e91\u4ea7\u54c1\u7ec4\u4ef6<\/h2>\n<p>\u963f\u91cc\u4e91\u7684\u4ea7\u54c1\u7ec4\u4ef6\u7684\u547d\u540d\u524d\u7f00\u4e3a\u00a0<code>spring-cloud-alicloud<\/code>\u00a0\uff0c\u63d0\u4f9b\u4e86\u5982\u4e0b\u7279\u6027\uff1a<\/p>\n<h4><strong>| \u5e94\u7528\u53d1\u73b0\u670d\u52a1<\/strong><\/h4>\n<p>\u963f\u91cc\u4e91\u5e94\u7528\u53d1\u73b0\u670d\u52a1ANS\uff0c\u9664\u4e86\u5e94\u7528\u53d1\u73b0\u7684\u57fa\u672c\u529f\u80fd\u5916\uff0c\u63d0\u4f9b\u4e86\u66f4\u4f4e\u6210\u672c\u7684 SaaS \u5316\u5e94\u7528\u53d1\u73b0\u670d\u52a1\uff0c\u540c\u65f6\u5728\u63a5\u53e3\u7684\u8c03\u7528\u4e2d\u52a0\u5165\u4e86\u52a0\u5bc6\u903b\u8f91\uff0c\u66f4\u597d\u5730\u4fdd\u62a4\u4f60\u7684\u670d\u52a1\u3002<\/p>\n<h4><strong>| \u914d\u7f6e\u7ba1\u7406\u670d\u52a1<\/strong><\/h4>\n<p>\u963f\u91cc\u4e91\u914d\u7f6e\u7ba1\u7406\u670d\u52a1ACM\uff0c\u52a0\u5f3a\u4e86\u5b89\u5168\u7684\u914d\u7f6e\u7ba1\u7406\uff0c\u5e76\u4e14\u8fd8\u5305\u542b\u4e86\u5b8c\u6574\u7684\u63a8\u9001\u8f68\u8ff9\u67e5\u8be2\u3002<\/p>\n<h4><strong>| \u5bf9\u8c61\u5b58\u50a8\u670d\u52a1<\/strong><\/h4>\n<p>\u963f\u91cc\u4e91\u4e91\u5b58\u50a8\u670d\u52a1OSS\uff0c\u652f\u6301\u5728\u4efb\u4f55\u5e94\u7528\u3001\u4efb\u4f55\u65f6\u95f4\u3001\u4efb\u4f55\u5730\u70b9\u5b58\u50a8\u548c\u8bbf\u95ee\u4efb\u610f\u7c7b\u578b\u7684\u6570\u636e\uff0c \u53ea\u9700\u8981\u81ea\u52a8\u6ce8\u5165\u4e00\u4e2a OSS Client\uff0c\u5373\u53ef\u76f4\u63a5\u4f7f\u7528\u5b58\u50a8\u4e0e\u4e0b\u8f7d\u529f\u80fd\u3002<\/p>\n<h2>\u4e09\u3001\u5982\u4f55\u4f7f\u7528<\/h2>\n<p>\u8fd9\u4e9b\u7ec4\u4ef6\u5728\u00a0Spring release\u00a0\u4ed3\u5e93\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b BOM \u6765\u4f7f\u7528\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.oschina.net\/uploads\/space\/2018\/1102\/103626_qYyq_2720166.png\" \/><\/p>\n<h1><strong>\u56db\u3001\u540e\u7eed\u89c4\u5212<\/strong><\/h1>\n<p>1.\u00a0<code>spring-cloud-stream-binder-rocket<\/code>\u00a0\u6a21\u5757\u5c06\u57fa\u4e8e\u00a0Spring Integration\u548cSpring Cloud Stream\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u5728\u4f7f\u7528 Spring Cloud Stream \u548c Spring Cloud Bus \u65f6\u5019\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528 RocketMQ \u4f5c\u4e3a\u6d88\u606f\u4e2d\u95f4\u4ef6\u3002<\/p>\n<p>2.\u00a0Spring Cloud Alibaba\u5c06\u96c6\u6210\u963f\u91cc\u4e91\u5206\u5e03\u5f0f\u4efb\u52a1\u8c03\u5ea6SchedulerX\u00a0\u548c\u963f\u91cc\u4e91\u65e5\u5fd7\u670d\u52a1\uff0c\u652f\u6301\u5f00\u53d1\u8005\u4f7f\u7528\u00a0Spring Boot \u7f16\u7a0b\u6a21\u578b\u7b80\u5316\u5176\u4f7f\u7528\u3002<\/p>\n<p>\u636e\u00a0Spring Cloud Alibaba \u9ad8\u7ea7\u5f00\u53d1\u5de5\u7a0b\u5e08\u4ea6\u76cf\u4ecb\u7ecd\uff0cSpring Cloud\u672c\u8eab\u662f\u4e00\u5957\u5fae\u670d\u52a1\u89c4\u8303\uff0c\u5e76\u4e0d\u662f\u4e00\u4e2a\u62ff\u6765\u5373\u53ef\u7528\u7684\u6846\u67b6\uff0c\u800c\u00a0Spring Cloud Alibaba\u7684\u5f00\u6e90\u4e3a\u5f00\u53d1\u8005\u4eec\u63d0\u4f9b\u4e86\u8fd9\u5957\u89c4\u8303\u7684\u5b9e\u73b0\u65b9\u5f0f\u3002\u540c\u65f6\uff0cSpring Cloud Alibaba\u7684\u7ec4\u4ef6\uff0c\u5b75\u5316\u81ea\u963f\u91cc\u5df4\u5df4\u5185\u90e8\u81ea\u7528\u7684\u4e2d\u95f4\u4ef6\u4ea7\u54c1\uff0c\u7ecf\u5386\u8fc7\u591a\u6b21\u53cc\u5341\u4e00\u7684\u8003\u9a8c\uff0c\u5177\u5907\u9ad8\u5e76\u53d1\u7684\u6297\u538b\u80fd\u529b\u3002\u6b64\u5916\uff0c\u5176\u5b8c\u6574\u7684\u4e2d\u6587\u6587\u6863\u548c\u672c\u5730\u5316\u7684\u5f00\u6e90\u670d\u52a1\u5c06\u63d0\u9ad8\u5f00\u53d1\u8005\u4eec\u7684\u63a5\u5165\u901f\u7387\uff0c\u5e76\u964d\u4f4e\u540e\u7eed\u7684\u8fd0\u7ef4\u96be\u5ea6\u3002<\/p>\n<\/div>\n<div class=\"news-links\">\n<h3>\u76f8\u5173\u94fe\u63a5<\/h3>\n<ul class=\"link-list\">\n<li>Spring Cloud Alibaba \u7684\u8be6\u7ec6\u4ecb\u7ecd\uff1a<a href=\"https:\/\/www.oschina.net\/p\/spring-cloud-alibaba\" target=\"_blank\" rel=\"noopener\">\u70b9\u51fb\u67e5\u770b<\/a><\/li>\n<li>Spring Cloud Alibaba \u7684\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/www.oschina.net\/home\/login?goto_page=https:\/\/www.oschina.net\/news\/101426\/spring-cloud-alibaba-open-source\" target=\"_blank\" rel=\"noopener\">\u70b9\u51fb\u4e0b\u8f7d<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"news-info\">\n<div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u5468\uff0cSpring Cloud\u8054\u5408\u521b\u59cb\u4eba<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[119],"class_list":["post-2141","post","type-post","status-publish","format-standard","hentry","tag-03-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/2141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=2141"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/2141\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=2141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=2141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=2141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}