{"id":221457,"date":"2020-12-02T02:43:40","date_gmt":"2020-12-01T18:43:40","guid":{"rendered":"http:\/\/4563.org\/?p=221457"},"modified":"2020-12-02T02:43:40","modified_gmt":"2020-12-01T18:43:40","slug":"spring-cloud-%e6%9c%89%e5%bf%85%e8%a6%81%e6%8a%8a%e6%89%80%e6%9c%89-api-%e6%8e%a5%e5%8f%a3%e6%94%be%e5%9c%a8%e4%b8%80%e4%b8%aa%e6%a8%a1%e5%9d%97%e4%b8%ad%e5%90%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=221457","title":{"rendered":"spring cloud \u6709\u5fc5\u8981\u628a\u6240\u6709 api \u63a5\u53e3\u653e\u5728\u4e00\u4e2a\u6a21\u5757\u4e2d\u5417"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  spring cloud \u6709\u5fc5\u8981\u628a\u6240\u6709 api \u63a5\u53e3\u653e\u5728\u4e00\u4e2a\u6a21\u5757\u4e2d\u5417               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhb1nk <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6700\u8fd1\u5728\u5b66\u4e60 spring cloud\uff0c\u770b\u5230\u4e00\u4e2a\u89c6\u9891\u4e2d\u8001\u5e08\u628a\u6240\u6709\u6a21\u5757\u7684 controller \u5199\u6210\u4e86\u63a5\u53e3\uff0c\u90fd\u653e\u5728\u4e86\u4e00\u4e2a\u53eb api \u7684\u6a21\u5757\u4e2d\uff0c\u7136\u540e\u5728\u6bcf\u4e2a\u4e1a\u52a1\u6a21\u5757\u4e2d\u5199\u63a5\u53e3\u7684\u5177\u4f53\u5b9e\u73b0\u3002\u60f3\u95ee\u4e0b\u8fd9\u6837\u6709\u5fc5\u8981\u5417\uff0c\u5404\u4f4d\u5728\u5b9e\u9645\u7684\u5de5\u4f5c\u4e2d\u4f1a\u9009\u62e9\u8fd9\u6837\u505a\u5417\uff1f\u8c22\u8c22\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4469788\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u5efa\u8bae\u8fd9\u4e48\u505a\u3002\u6211\u90fd\u662f\u6309\u529f\u80fd\u5148\u5206 C \u7aef B \u7aef\uff0c\u7136\u540e\u5206\u5927\u6a21\u5757\uff0c\u518d\u5206\u5c0f\u6a21\u5757\u628a\u5305\u5206\u597d\u3002\u6700\u540e\u5728\u5c0f\u6a21\u5757\u91cc\u9762\u5efa xxxController\/xxxService\/xxxServiceImpl \u8fd9\u4e48 3 \u4e2a\u6587\u4ef6\u3002\u597d\u5904\u662f\u5c42\u6b21\u5206\u660e\uff0c\u627e\u6587\u4ef6\u975e\u5e38\u65b9\u4fbf\u3002\u800c\u4e14\u4ee5\u540e\u8981\u62c6\u5206\u670d\u52a1\u4e5f\u5f88\u65b9\u4fbf\uff0c\u6574\u4e2a\u5305\u590d\u5236\u5230\u65b0\u9879\u76ee\u540e\u8001\u9879\u76ee\u91cc\u9762\u5220\u6389\u5c31\u884c\u4e86\uff0c\u4e0d\u9700\u8981\u5230\u5904\u627e\u6587\u4ef6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4469789\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : waising <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u5fc5\u8981\u5427\u3002\u90fd\u62c6\u5206\u4e86\u6ca1\u5fc5\u8981\u5728\u5173\u8054\u4e00\u8d77\uff0c\u5185\u90e8\u81ea\u7531\u8c03\u7528\u5c31\u884c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4469790\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yelog <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u540c\u4e1a\u52a1\u7684\u903b\u8f91\u548c api \u5199\u5728\u5404\u81ea\u7684\u4e1a\u52a1\u6a21\u5757\uff0c\u901a\u8fc7 gateway \u7b49\u7ec4\u5efa\u8fdb\u884c\u8def\u7531\u5373\u53ef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4469791\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tangzekk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u77e5\u9053\u4e86 \u6155\u8bfe\u7f51\u7684\u8bfe\u5168\u653e\u5728 service-api \u63a5\u53e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4469792\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Uchiha0bito <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5408\u7406 \u63a5\u53e3\u548c\u5b9e\u73b0\u5206\u5f00 \u53ea\u63d0\u4f9b\u4e00\u5957\u63a5\u53e3\u7ed9\u8c03\u7528\u65b9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4469793\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gangsta <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u89c6\u9891\u901a\u5e38\u53ea\u662f\u4e3a\u4e86\u5feb\u901f\u6f14\u793a\u800c\u5df2\u3002\u51e0\u5e74\u524d\u5728\u4e00\u4e2a\u73b0\u573a\u6d3b\u52a8\u4e2d\u770b\u5230 Spring \u5b98\u65b9\u7684\u56e2\u961f\u6210\u5458\uff0c\u5e94\u8be5\u662f\u53eb Josh Long\uff0c\u505a coding \u6f14\u793a\u7684\u65f6\u5019\u4e3a\u4e86\u56fe\u5feb\u76f4\u63a5\u628a controller \u3001java bean \u8fd8\u6709 service \u5199\u5728\u540c\u4e00\u4e2a class \u91cc\u9762\uff0c\u7136\u540e\u4ed6\u6253\u5b57\u53c8\u5f88\u5feb(\u5dee\u4e0d\u591a\u5c31\u662f\u8fb9\u5ff5\u82f1\u6587\u8fb9\u6253)\uff0c\u4e00\u987f\u9a9a\u64cd\u4f5c\u73b0\u573a\u5168\u90e8\u60ca\u5446\u4e86&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4469794\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : young1lin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gangsta \u662f\u8fd9\u6837\u7684\uff0c\u6211\u770b\u4ed6\u7684 Spring Cloud Kafka Stream \u7684\u6559\u5b66\u89c6\u9891\uff0c\u5168\u90e8\u653e\u5728\u4e00\u4e2a\u7c7b\u91cc\u9762\uff0c\u5c31\u662f\u4e3a\u4e86\u6f14\u793a\u5feb\uff0c\u4e00\u628a\u68ad\u3002\u4eba\u5bb6\u662f Spring \u5e03\u9053\u5e08\uff0c\u662f Pivotal \u56e2\u961f\u7684\uff0c\u4e5f\u662f \u300a Spring Cloud Native Java \u300b\u7684\u4f5c\u8005\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4469795\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fanlis <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u6000\u7591\u4eba\u8001\u5e08\u662f\u4e0d\u662f\u5199\u7684 OpenFeign \u63a5\u53e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4469796\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : stramkismet <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e00\u822c\u559c\u6b22\u628a\u670d\u52a1\u95f4\u8c03\u7528\u7684\u63a5\u53e3\u5355\u72ec\u5199\u4e2a api \u6a21\u5757(feign \u63a5\u53e3),\u7136\u540e\u7ed9\u5176\u4ed6\u670d\u52a1\u8fdb\u884c\u5f15\u7528\u3002controller \u7ee7\u627f\u8fd9\u4e2a api \u6a21\u5757\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>spring cloud \u6709\u5fc5\u8981\u628a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/221457"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221457"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/221457\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221457"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}