{"id":10006511,"date":"2022-09-17T15:35:08","date_gmt":"2022-09-17T07:35:08","guid":{"rendered":"https:\/\/ityet.com\/?p=10006511"},"modified":"2022-09-17T15:35:08","modified_gmt":"2022-09-17T07:35:08","slug":"spring-cloud-alibaba-%e6%9c%80%e6%96%b0%e7%89%88%e5%8f%91%e5%b8%83%ef%bc%81","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006511","title":{"rendered":"Spring Cloud Alibaba \u6700\u65b0\u7248\u53d1\u5e03\uff01"},"content":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u6808\u957f\u3002<\/p>\n<p>\u65f6\u9694\u5927\u534a\u5e74\u591a\uff0cSpring Cloud Alibaba 2021.x \u7ec8\u4e8e\u53d1\u5e03\u6700\u65b0\u7248\u672c\u4e86\uff0c\u611f\u8c22\u8fd9\u4f4d\u7c89\u4e1d\u7684\u901a\u77e5\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2vk6\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2vk7\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6700\u65b0\u7248\u672c\u4e3a 2021.0.4.0\uff0c\u4e0a\u4e00\u4e2a\u7248\u672c\u8fd8\u662f Spring Cloud Alibaba 2021.0.1.0\uff0cGithub \u5df2\u7ecf\u53d1\u5e03\u7248\u672c\u66f4\u65b0\uff0c\u4e0d\u8fc7 Spring Cloud \u5b98\u7f51\u8c8c\u4f3c\u5df2\u7ecf\u4e0d\u540c\u6b65\u66f4\u65b0\u7248\u672c\u53f7\u4e86\uff0c\u591a\u4e2a\u7248\u672c\u7ebf\u8fd8\u505c\u7559\u5728\u4e4b\u524d\u7684\u8001\u7248\u672c\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2vk8\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6bd4\u5982 Spring Cloud Alibaba 2.2.x \u5206\u652f\u6700\u65b0\u7248\u672c\u5df2\u6765\u5230\u4e86 2.2.9.RELEASE\uff0cSpring Cloud \u5b98\u7f51\u5374\u8fd8\u662f 2.2.7.RELEASE\uff0c\u6240\u4ee5\u6700\u65b0\u7248\u672c\u8fd8\u5f97\u53c2\u8003 Github \u4ed3\u5e93\u53d1\u5e03\u3002<\/p>\n<p><strong>\u4e3b\u8981\u66f4\u65b0\u5982\u4e0b\uff1a<\/strong><\/p>\n<ul>\n<li>Nacos \u652f\u6301 IPv6 \u7684\u5730\u5740\u6ce8\u518c\u548c\u8ba2\u9605\uff1b<\/li>\n<li>Nacos NacosServiceInstance \u7c7b\u4e2d\u6dfb\u52a0\u4e86 equals \u6bd4\u8f83\u65b9\u6cd5\uff1b<\/li>\n<li>Nacos \u652f\u6301\u5237\u65b0\u6307\u5b9a\u7684 configurationPropertiesBeans\uff1b<\/li>\n<li>Nacos \u6539\u8fdb\u4e86\u914d\u7f6e\u793a\u4f8b\uff1b<\/li>\n<li>RocketMQ \u652f\u6301\u533f\u540d\u7ec4\uff1b<\/li>\n<li>RocketMQ \u652f\u6301\u7a7a\u767d\u7684 header \u503c\uff1b<\/li>\n<li>RocketMQ \u6539\u8fdb\u4e86\u793a\u4f8b\u548c\u6587\u6863\uff1b<\/li>\n<li>Sidecar \u63d0\u4f9b\u7528\u6237\u4f7f\u7528\u6587\u6863\uff1b<\/li>\n<\/ul>\n<p>\u4e3b\u8981\u662f Nacos \u548c RocketMQ \u7684\u6539\u8fdb\u548c\u4f18\u5316\uff0c\u53e6\u5916\u8fd8\u4fee\u590d\u4e86\u4e00\u4e9b\u91cd\u8981\u7684 Bug\uff1a<\/p>\n<ul>\n<li>Nacos \u4fee\u590d\u4e86\u9500\u6bc1 undertow \u670d\u52a1\u5668\u671f\u95f4\u7684\u62a5\u544a\u9519\u8bef\uff1b<\/li>\n<li>Nacos \u4fee\u590d\u4e86\u914d\u7f6e\u793a\u4f8b\u9519\u8bef\uff1b<\/li>\n<li>RocketMQ \u4fee\u590d\u4e86\u591a broker offset \u9519\u8bef\uff1b<\/li>\n<li>RocketMQ \u4fee\u590d\u4e86 binder \u548c\u533f\u540d\u7ec4\u5bfc\u81f4\u7684\u9519\u8bef\uff1b<\/li>\n<li>Sentinel \u4fee\u590d jacocoagent \u73af\u5883\u4e2d\u7684\u6570\u636e\u6e90\u521d\u59cb\u5316\u9519\u8bef\uff1b<\/li>\n<li>Seata \u4fee\u590d\u3001\u53ca\u4f18\u5316\u5faa\u73af\u4f9d\u8d56\u95ee\u9898\uff1b<\/li>\n<li>\u4fee\u590d\u6587\u6863\u4e2d\u65e0\u6548\u7684\u56fe\u7247 URL\uff1b<\/li>\n<\/ul>\n<p>\u53e6\u5916\uff0c\u4f9d\u8d56\u7684\u57fa\u7840\u6846\u67b6\u53ca\u5404\u4e2a\u7ec4\u4ef6\u90fd\u6709\u4e0d\u5c11\u7a0b\u5ea6\u7684\u5347\u7ea7\uff1a<\/p>\n<ul>\n<li>Spring =&gt; <strong>Cloud 2021.0.4<\/strong>\uff1b<\/li>\n<li>Spring Boot =&gt; <strong>2.6.11<\/strong>\uff1b<\/li>\n<li>Nacos =&gt; <strong>2.0.4<\/strong>\uff1b<\/li>\n<li>RocketMQ =&gt; <strong>4.9.4<\/strong>\uff1b<\/li>\n<li>Sentinel =&gt; <strong>1.8.5<\/strong>\uff1b<\/li>\n<li>Seata =&gt; <strong>1.5.2<\/strong>\uff1b<\/li>\n<\/ul>\n<p>\u4ece\u4e0a\u9762\u7684\u7248\u672c\u53f7\u53ef\u4ee5\u770b\u51fa\uff0cSpring Cloud Alibaba \u7684\u7248\u672c\u53f7\u662f\u8ddf Spring Cloud \u7248\u672c\u8d70\u7684\uff0c\u4f46\u4e0d\u4f1a\u540c\u6b65\u66f4\u65b0\uff0c\u6bd4\u5982 Spring Cloud Alibaba \u5e76\u6ca1\u6709\u540c\u6b65 Spring Cloud 2021.0.1.2, 2021.0.1.3 \u7248\u672c\u3002<\/p>\n<p>Spring Cloud Alibaba \u76ee\u524d\u4e3b\u8981\u7ef4\u62a4\u4e86\u4e24\u6761\u7248\u672c\u7ebf\uff1a<\/p>\n<ul>\n<li>2021.x\uff08Spring Boot 2.4+\uff09<\/li>\n<li>2.2.x\uff08Spring Boot 1.5.x ~ 2.3.x\uff09<\/li>\n<\/ul>\n<p>\u533a\u5206\u4e24\u6761\u7ebf\u4e3b\u8981\u662f\u4e3a\u4e86\u540c\u65f6\u7ef4\u62a4\u4e0d\u540c Spring Boot \u7248\u672c\u7684\u7528\u6237\uff0c\u56e0\u4e3a <a href=\"https:\/\/link.segmentfault.com\/?enc=DnaEIZpNsUax0pWLfzlQUw%3D%3D.hwx7hXFwuSvgQDYmB0wJT0W0nSvKAVs0LKGyE1Gb14IAEqU%2Fvt97QO3C9oicw7aTholtzOU96CI2IAhpPo0uMQ%3D%3D\" rel=\"nofollow\">Spring Boot 2.4+<\/a> \u6709\u5f88\u5927\u7684\u53d8\u66f4\uff0c\u5f88\u591a\u7528\u6237\u8fd8\u5728 2.4 \u7248\u672c\u4ee5\u4e0b\uff0c\u5982\u679c\u4f60\u8fd8\u4e0d\u4f1a Spring Boot\uff0c\u8fd9\u91cc\u63a8\u8350\u4e00\u4e2a\u5f00\u6e90\u514d\u8d39\u7684 Spring Boot \u6700\u5168\u6559\u7a0b\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=1JqmckI%2BysJxpLMGmHonjg%3D%3D.c8cDgivhamPOiU5WUilFvB897ye%2FZTiW9UYGS6H2Sth6YDTd72prqq6X0euYekkat%2BbNhQNUoXc5mLLotEVFCw%3D%3D\" rel=\"nofollow\">https:\/\/github.com\/javastacks\/spring-boot-best-practice<\/a><\/p><\/blockquote>\n<p>\u6240\u4ee5\u57fa\u4e8e Spring Boot 2.4 \u63d0\u4f9b\u4e86\u4e24\u6761\u7248\u672c\u7ebf\uff0c\u4ee5\u4e0b\u662f\u7248\u672c\u5173\u7cfb\u8868\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>Spring Cloud Alibaba<\/th>\n<th>Spring Cloud<\/th>\n<th>Spring Boot<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>2021.0.4.0<\/strong><\/td>\n<td>Spring Cloud 2021.0.4<\/td>\n<td>2.6.11<\/td>\n<\/tr>\n<tr>\n<td>2021.0.1.0<\/td>\n<td>Spring Cloud 2021.0.1<\/td>\n<td>2.6.3<\/td>\n<\/tr>\n<tr>\n<td><strong>2.2.9.RELEASE<\/strong><\/td>\n<td>Spring Cloud Hoxton.SR12<\/td>\n<td>2.3.12.RELEASE<\/td>\n<\/tr>\n<tr>\n<td>2.2.8.RELEASE<\/td>\n<td>Spring Cloud Hoxton.SR12<\/td>\n<td>2.3.12.RELEASE<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Spring Cloud Alibaba \u7ec4\u4ef6\u7248\u672c\u5982\u4e0b\u8868\u6240\u793a\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>Spring Cloud<\/th>\n<th>Sentinel<\/th>\n<th>Nacos<\/th>\n<th>RocketMQ<\/th>\n<th>Dubbo<\/th>\n<th>Seata<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2021.0.4.0<\/td>\n<td>1.8.5<\/td>\n<td>2.0.4<\/td>\n<td>4.9.4<\/td>\n<td>~<\/td>\n<td>1.5.2<\/td>\n<\/tr>\n<tr>\n<td>2.2.9.RELEASE<\/td>\n<td>1.8.5<\/td>\n<td>2.1.0<\/td>\n<td>4.9.4<\/td>\n<td>~<\/td>\n<td>1.5.2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6808\u957f\u770b\u4e86\u4e0b\uff0c\u5bf9\u6bd4\u4e4b\u524d\u7684 2021.0.1.0 \u7248\u672c\uff0c\u5404\u7ec4\u4ef6\u90fd\u6709\u4e0d\u540c\u7a0b\u5ea6\u7684\u5347\u7ea7\u3002<\/p>\n<p><strong>Spring Cloud Alibaba \u548c Spring Cloud \u6709\u5565\u5173\u7cfb\uff1f<\/strong><\/p>\n<p>Spring Cloud Alibaba \u57fa\u4e8e Spring Cloud \u6784\u5efa\uff0c\u53ea\u662f\u63d0\u4f9b\u4e86\u5bf9 Alibaba \u7ec4\u4ef6\u7684\u5c01\u88c5\u800c\u5df2\uff0c\u6bd4\u5982\uff1a<strong>Nacos\u3001Sentinel<\/strong> \u7b49\uff0c\u5176\u6700\u9876\u5c42\u7684\u62bd\u8c61\u8fd8\u662f Spring Cloud\uff0c<strong>\u6240\u4ee5\u5b66\u4e60 Spring Cloud Alibaba \u5c31\u662f\u5b66\u4e60 Spring Cloud\u3002<\/strong><\/p>\n<p><strong>Spring Cloud Alibaba \u4f5c\u4e3a Spring Cloud \u7684\u5b98\u65b9\u9876\u7ea7\u9879\u76ee\uff0c\u4e5f\u662f\u56fd\u5185\u6700\u5f3a\u5fae\u670d\u52a1\u6846\u67b6\u53ca\u4e8b\u5b9e\u4e0a\u7684\u6807\u51c6\u3002<\/strong><\/p>\n<p>Spring Cloud Netflix \u65e9\u671f\u652f\u6301\u7684\u5404\u79cd\u7ec4\u4ef6\uff0c\u6bd4\u5982\uff1aEureka 2.x\u3001Ribbon\u3001Zuul\u3001Hystrix\u2026\u7b49\u8fd9\u4e9b\uff0c\u5b83\u4eec\u90fd\u65e9\u5df2\u505c\u6b62\u7ef4\u62a4\u66f4\u65b0\u4e86\uff0c<strong>\u5982\u679c\u4f60\u8fd8\u5728\u5b66\u53e4\u8463\u7684 Spring Cloud \u6280\u672f\uff0c\u6211\u529d\u4f60\u522b\u6d6a\u8d39\u65f6\u95f4\u4e86\uff01\uff01<\/strong><\/p>\n<hr>\n<p>\u6700\u540e\uff0c\u5982\u679c\u4f60\u60f3\u7cfb\u7edf\u5b66\u4e60 Spring Cloud \u5fae\u670d\u52a1\u4f53\u7cfb\uff0c\u60f3\u5b66\u4e60\u5fae\u670d\u52a1\u9879\u76ee\u67b6\u6784\u8bbe\u8ba1\uff0c\u4ee5\u53ca\u5404\u79cd\u4e3b\u6d41\u6846\u67b6\u3001\u4e2d\u95f4\u4ef6\u7684\u8854\u63a5\u548c\u8fd0\u7528\uff0c\u63a8\u8350\u5927\u5bb6\u62a5\u540d\u6808\u957f\u7684 <strong>Spring Cloud Alibaba \u5b9e\u6218\u8bfe\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2vk9\" alt=\"\u70b9\u51fb\u653e\u5927\u67e5\u770b\u9ad8\u6e05\u7248\" title=\"\u70b9\u51fb\u653e\u5927\u67e5\u770b\u9ad8\u6e05\u7248\" loading=\"lazy\"><\/p>\n<p><strong>\u5df2\u5168\u90e8\u5b8c\u7ed3\uff0c\u53ef\u968f\u65f6\u5b66\u4e60\u5168\u90e8\u5185\u5bb9\uff0c\u5b66\u5b8c\u76f4\u63a5\u628a\u5404\u79cd\u5fae\u670d\u52a1\u6280\u672f\u5199\u5230\u7b80\u5386\u91cc\uff0c\u9762\u8bd5\u8df3\u69fd\u8c08\u85aa\u6c34\u65f6\u4f1a\u66f4\u6709\u5e95\u6c14\u3002<\/strong><\/p>\n<blockquote><p>Spring Cloud Alibaba \u5b9e\u6218\u8bfe\uff0c\u6700\u8fd1\u4f1a\u5bf9\u6700\u65b0 2021.0.4.0 \u7248\u672c\u8fdb\u884c\u9002\u914d\u3002<\/p><\/blockquote>\n<p>\u4ee5\u4e0a\u53ea\u662f\u7b2c\u4e00\u671f\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u540e\u7eed\u8fd8\u4f1a\u66f4\u65b0\u66f4\u591a\u5fae\u670d\u52a1\u6280\u672f\uff0c<strong>\u5927\u5bb6\u53ea\u9700\u4e00\u6b21\u8ba2\u9605\u8bfe\u7a0b\uff0c\u6c38\u4e45\u5b66\u4e60\uff0c\u6c38\u4e45\u514d\u8d39\u63d0\u4f9b\u66f4\u65b0\uff0c\u7b2c 2\u30013 \u671f\u2026\u540e\u7eed N \u671f\u90fd\u6c38\u4e45\u514d\u8d39\u63d0\u4f9b\u66f4\u65b0\u2026\u2026<\/strong><\/p>\n<p>\u9996\u671f\u7279\u60e0\u4ef7\uff0c\u597d\u8bc4\u5982\u6f6e\uff01\uff01<\/p>\n<p>\u70b9\u51fb<a href=\"https:\/\/link.segmentfault.com\/?enc=aOZRFVWTIU2D59jRzH%2BTpg%3D%3D.WMnib9Ov6C16f%2F4%2F21u%2Fyf%2B6oTcYmVR2279jVtzz95YUrGiFReW8zr0eYw6P8BU4vtt41MPs5yeLWj9NCB2w9wrYStKAGxdpy3CP17gRZmU%3D\" rel=\"nofollow\">\u9605\u8bfb\u539f\u6587<\/a>\u94fe\u63a5\u4e86\u89e3\u62a5\u540d\u3002<\/p>\n<p><strong>\u8fd1\u671f\u70ed\u6587\u63a8\u8350\uff1a<\/strong><\/p>\n<p>1.<a href=\"https:\/\/link.segmentfault.com\/?enc=80AjMy7Txhqec1x4A9%2FdoA%3D%3D.JjeatHM2YuRiJNYtJIHYzLJEm3CP0jaks0cwCy31FRE%3D\" rel=\"nofollow\">1,000+ \u9053 Java\u9762\u8bd5\u9898\u53ca\u7b54\u6848\u6574\u7406(2022\u6700\u65b0\u7248)<\/a><\/p>\n<p>2.<a href=\"https:\/\/link.segmentfault.com\/?enc=Fl9MMjGgm0epHH8rDv%2Fzqw%3D%3D.8p%2BZ6hYllqNOTNC8HJX%2BpM0cg3JtBW1Jr5EWccVb9tfNipiFa5VXUsWaD%2Fd6RfPG3wrd%2F3lCzWuOqtczc1zI5w%3D%3D\" rel=\"nofollow\">\u52b2\u7206\uff01Java \u534f\u7a0b\u8981\u6765\u4e86\u3002\u3002\u3002<\/a><\/p>\n<p>3.<a href=\"https:\/\/link.segmentfault.com\/?enc=dMncnwXsp1NK8XBaO8xqAw%3D%3D.zb2Id6NVrfXR1q2JjijWeJs9Kh9ITM75yycABxMO6Hm4SnmUnpQAp%2BnWmwGbs%2F3Q\" rel=\"nofollow\">Spring Boot 2.x \u6559\u7a0b\uff0c\u592a\u5168\u4e86\uff01<\/a><\/p>\n<p>4.<a href=\"https:\/\/link.segmentfault.com\/?enc=knlWGAQAYM%2BVCymdg75yjA%3D%3D.KhCkdagkGmvy%2BStFn1LcX2WqjqPVZfKjl5nQtGSF2f9mv2tojcVrCKOGVsx9kDxcuA%2B1OFRr3ed4MXDzkf23eg%3D%3D\" rel=\"nofollow\">\u522b\u518d\u5199\u6ee1\u5c4f\u7684\u7206\u7206\u7206\u70b8\u7c7b\u4e86\uff0c\u8bd5\u8bd5\u88c5\u9970\u5668\u6a21\u5f0f\uff0c\u8fd9\u624d\u662f\u4f18\u96c5\u7684\u65b9\u5f0f\uff01\uff01<\/a><\/p>\n<p>5.<a href=\"https:\/\/link.segmentfault.com\/?enc=cOeP9b5KzTYDARchc%2B%2BrxA%3D%3D.W%2FCGsjPWuwjhQP%2BixDoi%2B6p5teuYngk2yuNFwyLz2pJjIe4UUCUZPYa4C7upCvtiFdkUZZe%2BS6mffbycoa04KlUu1rW9vh2B2CzLj9MD%2FLY%3D\" rel=\"nofollow\">\u300aJava\u5f00\u53d1\u624b\u518c\uff08\u5d69\u5c71\u7248\uff09\u300b\u6700\u65b0\u53d1\u5e03\uff0c\u901f\u901f\u4e0b\u8f7d\uff01<\/a><\/p>\n<p>\u89c9\u5f97\u4e0d\u9519\uff0c\u522b\u5fd8\u4e86\u968f\u624b\u70b9\u8d5e+\u8f6c\u53d1\u54e6\uff01<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042503790\">https:\/\/segmentfault.com\/a\/1190000042503790<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u6808\u957f\u3002 \u65f6\u9694\u5927\u534a\u5e74\u591a\uff0cSpring Cloud Alibaba 2021.x \u7ec8\u4e8e\u53d1\u5e03\u6700\u65b0\u7248\u672c\u4e86\uff0c [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006511","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006511"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006511\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}