{"id":229032,"date":"2020-12-10T16:18:23","date_gmt":"2020-12-10T08:18:23","guid":{"rendered":"http:\/\/4563.org\/?p=229032"},"modified":"2020-12-10T16:18:23","modified_gmt":"2020-12-10T08:18:23","slug":"%e5%85%b3%e4%ba%8e-rest-%e4%b8%ad%e7%9a%84%e6%97%a0%e7%8a%b6%e6%80%81%e7%9a%84%e4%b8%80%e4%b8%aa%e7%96%91%e9%97%ae%e3%80%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=229032","title":{"rendered":"\u5173\u4e8e REST \u4e2d\u7684\u201c\u65e0\u72b6\u6001\u201d\u7684\u4e00\u4e2a\u7591\u95ee\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5173\u4e8e REST \u4e2d\u7684\u201c\u65e0\u72b6\u6001\u201d\u7684\u4e00\u4e2a\u7591\u95ee\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/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>\u4e0b\u9762\u7684\u5185\u5bb9\u5f15\u81ea REST \u8bba\u6587\u539f\u6587\uff1a<\/p>\n<p>We next add a constraint to the client-server interaction: communication must be stateless in nature, as in the client-stateless-server (CSS) style of Section 3.4.3 (Figure 5-3), such that each request from client to server must contain all of the information necessary to understand the request, and cannot take advantage of any stored context on the server. Session state is therefore kept entirely on the client.<\/p>\n<p>\u91cd\u70b9\u662f\u6700\u540e\u4e00\u53e5\uff0c\u7ffb\u8bd1\u8fc7\u6765\u5c31\u662f\u201c\u56e0\u6b64\uff0c\u4f1a\u8bdd\u72b6\u6001\u5b8c\u5168\u4fdd\u5b58\u5728\u5ba2\u6237\u7aef\u4e0a\u201d\u3002\u867d\u7136\u51fa\u81ea\u5b98\u65b9\uff0c\u4f46\u6211\u5bf9\u6b64\u8fd8\u662f\u6709\u7591\u95ee\uff1a<\/p>\n<p>\u628a\u4f1a\u8bdd\u6570\u636e\u5b58\u5728\u5ba2\u6237\u7aef\uff0c\u4e5f\u5c31\u662f\u4f7f\u7528\u6240\u8c13\u7684\u201c\u5ba2\u6237\u7aef\u4f1a\u8bdd\u201d\u771f\u7684\u7b97\u662f\u201c\u65e0\u72b6\u6001\u201d\u4e48\uff1f<\/p>\n<p>\u6211\u53c8\u53bb\u8bfb\u4e86\u5f88\u591a\u5173\u4e8e\u201c\u65e0\u72b6\u6001\u201d\u7684\u6587\u7ae0\u3001\u5e16\u5b50\u548c\u56de\u590d\uff0c\u6211\u770b\u5230\u4e0d\u5c11\u4eba\u8bf4\u8fd9\u79cd\u786e\u5b9e\u662f\u201c\u65e0\u72b6\u6001\u201d\uff0c\u4f46\u6211\u4e2a\u4eba\u603b\u89c9\u5f97\u4e0d\u5bf9\u3002\u5ba2\u6237\u7aef\u4f1a\u8bdd\u6570\u636e\u4e5f\u662f\u7531\u670d\u52a1\u7aef\u751f\u6210\uff0c\u6700\u7ec8\u4e5f\u662f\u7531\u670d\u52a1\u7aef\u8bfb\u53d6\uff0c\u53ea\u4e0d\u8fc7\u6ca1\u6709\u88ab\u4fdd\u5b58\u5728\u670d\u52a1\u7aef\uff0c\u800c\u662f\u88ab\u4fdd\u5b58\u5230\u4e86\u5ba2\u6237\u7aef\uff0c\u6240\u4ee5\u5b83\u548c\u5e38\u89c1\u7684\u201c\u670d\u52a1\u7aef\u4f1a\u8bdd\u201d\u7684\u533a\u522b\u53ea\u662f\u5b58\u50a8\u7684\u5730\u65b9\u4e0d\u4e00\u6837\uff08\u8fd9\u79cd\u201c\u53bb\u4e2d\u5fc3\u5316\u201d\u786e\u5b9e\u6709\u5b83\u7684\u597d\u5904\uff0c\u4f46\u7f3a\u70b9\u4e5f\u4e0d\u5c11\uff09\uff0c\u4f46\u4f5c\u7528\u5b8c\u5168\u662f\u4e00\u6837\u7684\uff0c\u96be\u9053\u4e0d\u662f\u4e48\uff1f<\/p>\n<p>\u628a\u4f1a\u8bdd\u6570\u636e\u4ece\u5ba2\u6237\u7aef\u4f20\u7ed9\u670d\u52a1\u7aef\uff0c\u7136\u540e\u670d\u52a1\u7aef\u8bfb\u53d6\u4f20\u8fc7\u6765\u7684\u4f1a\u8bdd\u6570\u636e\u5e76\u8fdb\u884c\u4f7f\u7528\uff0c\u8fd9\u4e0d\u4e5f\u662f\u5728\u8bfb\u53d6\u672c\u6b21\u4ea4\u4e92\u8fc7\u7a0b\uff08\u6216\u8005\u8bf4\u4f1a\u8bdd\uff09\u4e2d\u524d\u9762\u67d0\u4e2a\u8bf7\u6c42\u6240\u4ea7\u751f\u7684\u6570\u636e\u4e48\uff1f\u90a3\u8bf7\u6c42\u548c\u8bf7\u6c42\u4e4b\u95f4\u8fd8\u7b97\u662f\u4e92\u76f8\u72ec\u7acb\u4e48\uff1f\u8bf4\u597d\u7684\u201c\u4eba\u751f\u53ea\u5982\u521d\u89c1\u201d\u5462\uff1f<\/p>\n<p>\u73b0\u5728\u7684\u6211\u89c9\u5f97\u5982\u679c\u8981\u201c\u65e0\u72b6\u6001\u201d \uff0c\u5c31\u7edd\u5bf9\u4e0d\u5e94\u8be5\u6709\u201c\u4f1a\u8bdd\u201d\u8fd9\u4e2a\u6982\u5ff5\uff0c\u4e0d\u8bba\u662f\u201c\u670d\u52a1\u7aef\u4f1a\u8bdd\u201d\u8fd8\u662f\u201c\u5ba2\u6237\u7aef\u4f1a\u8bdd\u201d\uff0c\u90fd\u4e0d\u5e94\u8be5\u5b58\u5728\uff0c\u611f\u89c9\u4f7f\u7528\u201c\u5ba2\u6237\u7aef\u4f1a\u8bdd\u201d\u6765\u7b26\u5408\u201c\u65e0\u72b6\u6001\u201d\u6709\u70b9\u50cf\u63a9\u8033\u76d7\u94c3\u4f3c\u7684\u3002<\/p>\n<p>\u6700\u540e\u5728\u91cd\u590d\u4e00\u904d\u95ee\u9898\uff1a\u628a\u4f1a\u8bdd\u6570\u636e\u5b58\u5728\u5ba2\u6237\u7aef\uff0c\u4e5f\u5c31\u662f\u4f7f\u7528\u6240\u8c13\u7684\u201c\u5ba2\u6237\u7aef\u4f1a\u8bdd\u201d\u771f\u7684\u7b97\u662f\u201c\u65e0\u72b6\u6001\u201d\u4e48\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>82<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4698257\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jooooooooo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53c8\u8981\u63d0\u90a3\u4e00\u53e5: \u5c11\u7ea0\u7ed3\u5b9a\u4e49\u95ee\u9898<\/p>\n<p>\u6709\u5177\u4f53\u95ee\u9898\u76f4\u63a5\u5177\u4f53\u5206\u6790                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698258\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GeruzoniAnsasu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             such that each request from client to server must contain all of the information necessary to understand the request<\/p>\n<p>\u5212\u91cd\u70b9<br \/>\u8fd9\u662f\u6240\u8c13\u7684\u65e0\u72b6\u6001\uff0c\u6bd4\u5982\u767b\u5f55\u4e0e\u5426\u7684\u72b6\u6001\u4e0d\u5e94\u7531\u8fde\u63a5\u6765\u4fdd\u6301\uff0c\u800c\u662f\u6bcf\u4e2a\u8bf7\u6c42\u4e2d\u90fd\u542b\u6709\u5b8c\u6574\u7684\u9274\u6743\u4fe1\u606f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698259\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jooooooooo \u6211\u4e5f\u4e0d\u60f3\u7ea0\u7ed3\u8fd9\u4e2a\u95ee\u9898\uff0c\u53ea\u4e0d\u8fc7\u770b\u5230\u597d\u591a\u4eba\u7684\u60f3\u6cd5\u548c\u81ea\u5df1\u4e0d\u540c\uff0c\u8fde\u539f\u8bba\u6587\u90fd\u548c\u81ea\u5df1\u7684\u60f3\u6cd5\u4e0d\u540c\uff0c\u4e09\u4eba\u6210\u864e\u554a\uff0c\u6211\u62c5\u5fc3\u81ea\u5df1\u662f\u4e0d\u662f\u54ea\u91cc\u6ca1\u641e\u660e\u767d\uff0c\u6240\u4ee5\u624d\u6765\u63d0\u95ee\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698260\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jooooooooo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u4f60\u80fd\u5f04\u660e\u767d\u4e3a\u4ec0\u4e48\u8981\u6709\u65e0\u72b6\u6001, \u4f1a\u8bdd\u8fd9\u4e9b\u4e1c\u897f. \u53ca\u5176\u7279\u6027\u5e26\u6765\u7684\u597d\u5904\u5c31\u884c\u4e86.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698261\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fengchang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u89c9\u5f97\u7b97\uff0c\u4f60\u8fd9\u4e2a\u95ee\u9898\u5f88\u5947\u602a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698262\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fengchang \u7406\u7531\u662f\uff1f\u4f60\u4e0d\u89c9\u5f97\u90fd\u5df2\u7ecf\u6709\u4f1a\u8bdd\u72b6\u6001\u4e86\uff0c\u8fd8\u80fd\u8bf4\u518d\u8bf4\u662f\u201c\u65e0\u72b6\u6001\u201d\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698263\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @GeruzoniAnsasu \u6240\u4ee5\u4f60\u7684\u89c2\u70b9\u662f\uff1f\u7b97\u8fd8\u662f\u4e0d\u7b97\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698264\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GeruzoniAnsasu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u6211\u7684\u89c2\u70b9\u662f<\/p>\n<p>\u6211\u9075\u5faa\u201c\u667a\u80fd REST*\u4e92\u8054\u7f51+\u6280\u672f\u201d<br \/>\u8fd9\u4e2a\u6280\u672f\u7684\u6838\u5fc3\u8981\u4e49\u662f Each request from client to server must contain all of the information necessary to understand the request.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698265\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Bromine0x23 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/www.ics.uci.edu\/~fielding\/pubs\/dissertation\/net_arch_styles.htm#sec_3_4_3<\/p>\n<p>3.4.3 Client-Stateless-Server (CSS)<br \/>The client-stateless-server style derives from client-server with the additional constraint that no session state is allowed on the server component. Each request from client to server must contain all of the information necessary to understand the request, and cannot take advantage of any stored context on the server. Session state is kept entirely on the client.<\/p>\n<p>https:\/\/www.ics.uci.edu\/~fielding\/pubs\/dissertation\/rest_arch_style.htm#sec_5_1_3<\/p>\n<p>5.1.3 Stateless<br \/>We next add a constraint to the client-server interaction: communication must be stateless in nature, as in the client-stateless-server (CSS) style of Section 3.4.3 (Figure 5-3), such that each request from client to server must contain all of the information necessary to understand the request, and cannot take advantage of any stored context on the server. Session state is therefore kept entirely on the client.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698266\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : YouMoeYi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8001\u54e5\u6211\u89c9\u5f97\u4f60\u53ef\u80fd\u641e\u9519\u4e86\u65e0\u72b6\u6001\u6240\u5f62\u5bb9\u7684\u5bf9\u8c61\u3002\u6211\u4eec\u8bf4 HTTP \u662f\u65e0\u72b6\u6001\u7684\uff0c\u662f\u6307 HTTP \u5728\u4e24\u6b21\u8fde\u63a5\u4e4b\u95f4\u4e0d\u80fd\u4fdd\u5b58\u72b6\u6001\u800c\u4e0d\u662f\u5ba2\u6237\u7aef\u6216\u8005\u670d\u52a1\u7aef\u4e0d\u80fd\u4fdd\u5b58\u72b6\u6001\uff0c\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u7aef\u7684\u4f1a\u8bdd\u5c31\u662f\u7528\u6765\u89e3\u51b3 HTTP \u65e0\u72b6\u6001\u6240\u5e26\u6765\u7684\u7f3a\u9677\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698267\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fengchang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 REST \u662f\u4e00\u9879\u670d\u52a1\u7aef\u7684\u6280\u672f\uff0c\u5b83\u7684\u8303\u56f4\u5c31\u5230 API\uff0c\u5b83\u4e0d\u5173\u5fc3\u4f60\u662f\u7528\u6d4f\u89c8\u5668\u3001\u5ba2\u6237\u7aef\u3001curl \u8fd8\u662f Postman \u8bbf\u95ee\u3002\u5b9a\u4e49\u8fd9\u4e2a\u4e8b\u60c5\u5f53\u7136\u662f\u5b9a\u4e49\u8005\u8bf4\u4e86\u7b97\uff0c\u4ed6\u7684\u5b9a\u4e49\u5c31\u662f REST \u7684\u670d\u52a1\u7aef\u4e0d\u4fdd\u5b58\u72b6\u6001\uff0c\u4f60\u4e3a\u5565\u975e\u8981\u8bf4\u5ba2\u6237\u7aef\u4e5f\u4e0d\u80fd\u4fdd\u5b58\u4f1a\u8bdd\u624d\u7b97\u65e0\u72b6\u6001\uff1f<\/p>\n<p>\u4f60\u53ef\u4ee5\u7528 curl \u8bbf\u95ee RESTful \u7684\u670d\u52a1\uff0c\u7136\u540e\u628a cookie \u8bb0\u5728\u8111\u5b50\u91cc\uff0c\u6bcf\u6b21\u8f93\u5165\u547d\u4ee4\u7684\u65f6\u5019\u6253\u51fa\u6765\uff0c\u8fd9\u6837\u5ba2\u6237\u7aef\u4e5f\u65e0\u72b6\u6001\u4e86\u3002\u90a3\u662f\u4e0d\u662f\u53ef\u4ee5\u7ee7\u7eed\u95ee\u201c\u8111\u5b50\u91cc\u6709\u4f1a\u8bdd\u771f\u7684\u7b97\u662f\u65e0\u72b6\u6001\u5417\u201d\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698268\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lihongming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u65e0\u72b6\u6001\u662f\u76f8\u5bf9\u4e8e\u4ee5\u524d\u7684 session \u6765\u8bf4\u7684\uff0c\u4ee5\u524d\u767b\u5f55\u72b6\u6001\u53ef\u4ee5\u4fdd\u5b58\u5728 session \u91cc\uff0c\u670d\u52a1\u7aef\u62ff\u7740\u5ba2\u6237\u7aef\u4f20\u6765\u7684 session id \u5c31\u77e5\u9053\u72b6\u6001\u4e86\u3002<\/p>\n<p>\u800c\u5728\u6a2a\u5411\u6269\u5c55\u53f8\u7a7a\u89c1\u60ef\u7684\u4e91\u8ba1\u7b97\u65f6\u4ee3\uff0c\u5404\u670d\u52a1\u5668\u4e4b\u95f4\u540c\u6b65 session \u662f\u4e00\u4e2a\u6210\u672c\u5f88\u9ad8\u7684\u4efb\u52a1\uff0c\u6240\u4ee5\u72b6\u6001\u5c31\u653e\u5728\u5ba2\u6237\u7aef\u4e86\u3002\u8fd9\u601d\u60f3\u6709\u70b9\u4f9d\u8d56\u6ce8\u5165\u7684\u611f\u89c9\u2014\u2014\u4f60\u9700\u8981\u4e00\u4e2a\u72b6\u6001\uff0c\u6240\u4ee5\u6211\u5c31\u5728\u8c03\u7528\u4f60\u7684\u65f6\u5019\u7ed9\u4f60\u4e2a\u72b6\u6001\u3002\u670d\u52a1\u7aef\u6839\u636e\u7b7e\u540d\u7b97\u6cd5\u9a8c\u8bc1\u4e00\u4e0b\u5ba2\u6237\u7aef\u72b6\u6001\u7684\u771f\u4f2a\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u7528\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698269\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e2a\u4eba\u7406\u89e3\u8fd9\u91cc\u8bf4\u7684\u201c\u65e0\u72b6\u6001\u201d\u662f\u6307\u670d\u52a1\u5668\u65e0 session \u72b6\u6001\u3002\u4e0d\u662f HTTP \u90a3\u4e2a\u65e0\u72b6\u6001\uff0c\u4e5f\u4e0d\u4ee3\u8868\u670d\u52a1\u5668\u4e0d\u4f7f\u7528\u6570\u636e\u5e93\u4fdd\u5b58\u5176\u4ed6\u4fe1\u606f\u3002<br \/>\u539f\u56e0\u5c31\u662f\u4e0a\u6240\u8bf4\u7684\u4e0d\u540c\u670d\u52a1\u5668\u540c\u6b65 session \u6210\u672c\u9ad8\u3002\u7406\u8bba\u4e0a\u4e5f\u53ef\u4ee5\u628a session \u5b58\u5728\u6570\u636e\u5e93\u4e2d\uff0c\u4f46\u662f\u6210\u672c\u4e5f\u662f\u6bd4\u5b58\u5ba2\u6237\u7aef\u9ad8\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698270\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yzbythesea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             stateless \u6307\u7684\u662f\u4f60\u8fd9\u4e2a API call \u4e0d\u9700\u8981\u77e5\u9053\u4efb\u4f55 \u4e4b\u524d API call \u7684\u5185\u5bb9\u548c\u72b6\u6001\uff0c\u662f\u72ec\u7acb\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698271\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zjsxwc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u670d\u52a1\u7aef\u4fdd\u5b58\u72b6\u6001\u6570\u636e\uff0c\u5ba2\u6237\u7aef\u6ca1\u6709\u4fdd\u5b58\u72b6\u6001\u6570\u636e\uff0c\u5c31\u662f statefull\uff0c\u6bd4\u5982\u5bf9\u4e8e\u7528\u6237\u767b\u5f55\u72b6\u6001\u6570\u636e\u6765\u8bf4\uff0c\u6211\u4eec\u5e38\u89c1\u7684\u5ba2\u6237\u7aef\u8bf7\u6c42\u4f7f\u7528 sessionId \u6a21\u5f0f\u3002<\/p>\n<p>\u670d\u52a1\u7aef\u5c3d\u53ef\u80fd\u5c11\u4fdd\u5b58\u72b6\u6001\u6570\u636e\uff0c\u5ba2\u6237\u7aef\u4fdd\u5b58\u72b6\u6001\u6570\u636e\uff0c\u5c31\u662f stateless\uff0c\u6bd4\u5982\u5bf9\u4e8e\u8d44\u6e90\u6570\u636e\u6765\u8bf4\uff0c\u6211\u4eec\u5e38\u89c1\u7684\u5728 url \u91cc\u5305\u542b\u8d44\u6e90 id\uff0c\u6bcf\u6b21\u8bbf\u95ee\u8fd9\u4e2a url \u5c31\u662f\u540c\u4e00\u4e2a\u8d44\u6e90\u5185\u5bb9\uff0c\u5728\u5ba2\u6237\u7aef\u91cc\u9762\u4fdd\u5b58\u7528\u6237\u8bbf\u95ee\u8d44\u6e90\u5386\u53f2\uff0c\u800c\u4e0d\u662f\u5728\u670d\u52a1\u7aef\u91cc\u9762\u4fdd\u5b58\u7528\u6237\u8bbf\u95ee\u8d44\u6e90\u5386\u53f2\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698272\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : airfling <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6240\u6709\u7684\u8bf7\u6c42\u90fd\u5e26 bearr token\uff0ctoken \u91cc\u9762\u81ea\u5df1\u5e26\u4e86\u52a0\u5bc6\u7684\u7528\u6237\u4fe1\u606f\u548c\u6709\u6548\u65f6\u95f4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698273\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whileFalse <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u53f8\u7684\u505a\u6cd5\u662f\uff0c\u524d\u7aef Node \u670d\u52a1\u6709 Session \u72b6\u6001\uff0c\u4f1a\u7528 Session \u4fdd\u5b58\u7528\u6237 ID\uff0c\u53ef\u80fd\u8fd8\u6709\u5176\u4ed6\u7528\u6237\u4fe1\u606f\u3002<br \/>\u540e\u7aef Java \u670d\u52a1\u5c31\u6ca1\u6709\u767b\u5f55\u72b6\u6001\u8fd9\u8bf4\u6cd5\u4e86\u3002Node \u4f20\u8fc7\u6765\u54ea\u4e2a\u7528\u6237\u7684\u884c\u4e3a\u540e\u7aef\u5c31\u76f8\u4fe1\u662f\u8fd9\u4e2a\u7528\u6237\u3002<\/p>\n<p>LZ \u5f15\u7528\u7684\u8bba\u6587\u662f\u4e0d\u662f\u8981\u628a\u7528\u6237 ID \u751a\u81f3\u7528\u6237\u6743\u9650\u90fd\u653e\u5728\u77ed\u6548 JWT \u91cc\u9762\u5440\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698274\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @whileFalse \u6211\u4e2a\u4eba\u53cd\u5bf9\u628a\u7528\u6237 ID \u548c\u7528\u6237\u6743\u9650\u653e\u5728 JWT \u91cc\u9762\uff0c\u56e0\u4e3a\u8fd9\u65f6\u5019 JWT \u672c\u8d28\u4e0a\u5c31\u662f\u6211\u8bf4\u7684\u5ba2\u6237\u7aef\u4f1a\u8bdd\u800c\u5df2\uff0c\u4e0d\u8fc7\u597d\u591a\u4eba\u90fd\u8bf4\u8fd9\u4e48\u505a\u53ef\u4ee5\uff0c\u6211\u8d28\u7591\u7684\u5c31\u662f\u8fd9\u79cd\u7528\u6cd5\u3002<\/p>\n<p>\u6211\u89c9\u5f97\u6b63\u786e\u7684\u7528\u6cd5\u5e94\u8be5\u5927\u6982\u662f\u8fd9\u6837\uff0c\u5ba2\u6237\u7aef\u63d0\u4ea4\u7528\u6237\u540d\u548c\u5bc6\u7801\u5411\u670d\u52a1\u7aef\u7533\u8bf7 JWT\uff0cJWT \u7684 payload \u4e2d\u53ea\u5305\u542b\u4e00\u4e2a\u4ee4\u724c\u548c\u4e00\u4e2a\u8fc7\u671f\u65f6\u95f4\uff0c\u540e\u7eed\u8bf7\u6c42\u90fd\u628a JWT \u4f20\u5230\u670d\u52a1\u7aef\uff0c\u670d\u52a1\u7aef\u9a8c\u8bc1\u901a\u8fc7 JWT \u540e\u5c31\u901a\u8fc7 payload \u4e2d\u7684\u4ee4\u724c\u627e\u5230\u901a\u8fc7\u8ba4\u8bc1\u7684\u7528\u6237\u5373\u53ef\u3002\u81f3\u4e8e\u4e00\u6b21\u4ea4\u4e92\u5185\u4e4b\u524d\u4ea7\u751f\u7684\u4e34\u65f6\u6570\u636e\u6216\u8005\u8bf4\u72b6\u6001\uff0c\u5e94\u8be5\u5b58\u653e\u5728\u5ba2\u6237\u7aef\u7684\u672c\u5730\u5b58\u50a8\u4e2d\uff0c\u53ea\u8981\u53d1\u8d77\u8bf7\u6c42\u65f6\uff0c\u628a\u670d\u52a1\u7aef\u9700\u8981\u7684\u53c2\u6570\u4ece\u672c\u5730\u5b58\u50a8\u4e2d\u62ff\u51fa\u6765\u653e\u5230\u8bf7\u6c42\u4e2d\u5373\u53ef\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698275\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @airfling \u55ef\uff0c\u8fd9\u4e2a\u80af\u5b9a\u6ca1\u9519\uff0c\u4e0d\u8fc7\u6709\u4e9b\u4eba\u8ba4\u4e3a\u8fd8\u53ef\u4ee5\u628a\u6bd4\u5982\u7528\u6237 id \u3001\u7528\u6237\u6743\u9650\u7b49\u4f1a\u8bdd\u6570\u636e\u653e\u5230 token \u4e2d\uff0c\u867d\u7136\u5f88\u65b9\u4fbf\uff0c\u4f46\u8fd9\u65f6\u5019 token \u5c31\u53d8\u6210\u5ba2\u6237\u7aef\u4f1a\u8bdd\u4e86\uff0c\u6211\u89c9\u5f97\u8fd9\u79cd\u505a\u6cd5\u4e0d\u5408\u9002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698276\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lihongming \u4f60\u8bf4\u7684\u8fd9\u79cd\u7528\u6cd5\uff0c\u5982\u679c\u53ea\u662f\u767b\u9646\u72b6\u6001\u8fd9\u4e00\u79cd\u72b6\u6001\uff0c\u6211\u89c9\u5f97\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u5982\u679c\u628a token \u4e2d\u585e\u6ee1\u4ee5\u524d\u4fdd\u5b58\u5728\u670d\u52a1\u7aef\u4f1a\u8bdd\u4e2d\u7684\u90a3\u4e9b\u4f1a\u8bdd\u6570\u636e\u5462\uff1f\u5c31\u6bd4\u5982\u8bf4\u7528\u6237\u6743\u9650\u6570\u636e\uff0c\u4ee5\u524d\u7ecf\u5e38\u662f\u4fdd\u5b58\u5728\u670d\u52a1\u7aef\u4f1a\u8bdd\u4e2d\u7684\uff0c\u5982\u679c\u73b0\u5728\u628a\u5b83\u632a\u5230\u5ba2\u6237\u7aef\u5408\u9002\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698277\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ysc3839 \u90a3\u5c31\u662f\u8bf4\uff0c\u4f60\u8ba4\u4e3a\u53ea\u8981\u670d\u52a1\u7aef\u65e0\u4f1a\u8bdd\u72b6\u6001\uff0c\u6bd4\u5982\u628a\u4f1a\u8bdd\u72b6\u6001\u5b58\u5728\u5ba2\u6237\u7aef\uff0c\u5c31\u7b97 REST \u7684\u201c\u65e0\u72b6\u6001\u201d\u4e86\uff0c\u5bf9\u4e48\uff1f<\/p>\n<p>\u6211\u4e2a\u4eba\u7684\u60f3\u6cd5\u662f\uff0c\u8fd9\u4e9b\u4f1a\u8bdd\u6570\u636e\u7531\u670d\u52a1\u7aef\u4ea7\u751f\uff0c\u6700\u7ec8\u4e5f\u662f\u7531\u670d\u52a1\u7aef\u8bfb\u53d6\u4f7f\u7528\uff0c\u672c\u8d28\u4e0a\u8fd8\u662f\u670d\u52a1\u7aef\u5728\u7528\uff0c\u53ea\u4e0d\u8fc7\u88ab\u5b58\u653e\u5728\u5ba2\u6237\u7aef\u4e0a\u4e86\u800c\u5df2\u3002<\/p>\n<p>\u5982\u679c\u5ba2\u6237\u7aef\u81ea\u5df1\u628a\u4ea4\u4e92\u8fc7\u7a0b\u4e2d\u7684\u72b6\u6001\u5b58\u5728\u81ea\u5df1\u7684\u672c\u5730\u5b58\u50a8\u4e0a\uff0c\u7136\u540e\u5728\u5411\u670d\u52a1\u7aef\u53d1\u9001\u8bf7\u6c42\u65f6\uff0c\u81ea\u5df1\u4ece\u672c\u5730\u5b58\u50a8\u4e2d\u9009\u7528\u670d\u52a1\u7aef\u9700\u8981\u7684\u72b6\u6001\uff0c\u518d\u548c\u8bf7\u6c42\u4e00\u8d77\u53d1\u7ed9\u670d\u52a1\u7aef\uff0c\u8fd9\u624d\u662f\u771f\u6b63\u7684\u201c\u65e0\u72b6\u6001\u201d\u3002\u5ba2\u6237\u7aef\u81ea\u5df1\u5b58\u653e\uff0c\u81ea\u5df1\u9009\u53d6\u4f7f\u7528\uff0c\u670d\u52a1\u7aef\u53ea\u505a\u63a5\u6536\u65b9\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698278\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Bromine0x23 \u8fd9\u4e24\u6bb5\u5b9e\u9645\u4e0a\u6211\u90fd\u770b\u4e86\uff0c\u53ea\u4e0d\u8fc7\u89c9\u5f97\u610f\u601d\u662f\u4e00\u6837\u7684\uff0c\u6240\u4ee5\u6211\u5c31\u5f15\u7528\u4e86\u4e00\u6bb5\u3002\u6240\u4ee5\u4f60\u7684\u610f\u601d\u662f\u628a\u4ea4\u4e92\u72b6\u6001\u653e\u5230\u201c\u5ba2\u6237\u7aef\u4f1a\u8bdd\u201d\u4e2d\u7b97\u662f\u201c\u65e0\u72b6\u6001\u201d\u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698279\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wangritian <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u65f6\u95f4\u4e0d\u5982\u7814\u7a76\u4f1a\u8bdd\u5b89\u5168                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698280\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fengchang \u6211\u53ea\u662f\u89c9\u5f97\uff0c\u5ba2\u6237\u7aef\u4f1a\u8bdd\u7684\u72b6\u6001\u662f\u6709\u670d\u52a1\u7aef\u751f\u6210\uff0c\u6700\u540e\u4e5f\u662f\u7531\u670d\u52a1\u7aef\u8bfb\u53d6\u4f7f\u7528\uff0c\u8fd9\u79cd\u4e0d\u80fd\u7b97\u201c\u65e0\u72b6\u6001\u201d\u3002<\/p>\n<p>\u6211\u89c9\u5f97\u5ba2\u6237\u7aef\u81ea\u4e3b\u751f\u6210\u72b6\u6001\uff0c\u7136\u540e\u653e\u5728\u81ea\u5df1\u7684\u672c\u5730\u5b58\u50a8\u4e2d\uff0c\u7136\u540e\u518d\u6839\u636e\u4e0b\u6b21\u8c03\u7528\u7684 api \u9700\u8981\u4ec0\u4e48\u6570\u636e\uff0c\u518d\u4ece\u672c\u5730\u5b58\u50a8\u4e2d\u53d6\u51fa\u6765\uff0c\u8fd9\u624d\u662f\u201c\u65e0\u72b6\u6001\u201d\uff0c\u670d\u52a1\u7aef\u6839\u672c\u5c31\u4e0d\u77e5\u9053\u201c\u72b6\u6001\u201d\u4e3a\u4f55\u7269\uff0c\u53ea\u77e5\u9053\u5ba2\u6237\u7aef\u4f1a\u628a\u6211\u8981\u7684\u6570\u636e\u90fd\u53d1\u7ed9\u6211\uff0c\u6211\u76f4\u63a5\u7528\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u670d\u52a1\u7aef\u4e0d\u77e5\u9053\u201c\u72b6\u6001\u201d\u4e3a\u4f55\u7269 != \u670d\u52a1\u7aef\u4e0d\u5728\u4e4e\u201c\u72b6\u6001\u201d\u5b58\u5728\u54ea\u91cc\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698281\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whileFalse <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 <br \/>&gt; \u6211\u4e2a\u4eba\u53cd\u5bf9\u628a\u7528\u6237 ID \u548c\u7528\u6237\u6743\u9650\u653e\u5728 JWT \u91cc\u9762\uff0c\u56e0\u4e3a\u8fd9\u65f6\u5019 JWT \u672c\u8d28\u4e0a\u5c31\u662f\u6211\u8bf4\u7684\u5ba2\u6237\u7aef\u4f1a\u8bdd\u800c\u5df2<br \/>&gt; \u6211\u89c9\u5f97\u6b63\u786e\u7684\u7528\u6cd5\u5e94\u8be5\u5927\u6982\u662f\u8fd9\u6837\uff0c\u5ba2\u6237\u7aef\u63d0\u4ea4\u7528\u6237\u540d\u548c\u5bc6\u7801\u5411\u670d\u52a1\u7aef\u7533\u8bf7 JWT\uff0cJWT \u7684 payload \u4e2d\u53ea\u5305\u542b\u4e00\u4e2a\u4ee4\u724c\u548c\u4e00\u4e2a\u8fc7\u671f\u65f6\u95f4\uff0c\u540e\u7eed\u8bf7\u6c42\u90fd\u628a JWT \u4f20\u5230\u670d\u52a1\u7aef\uff0c\u670d\u52a1\u7aef\u9a8c\u8bc1\u901a\u8fc7 JWT \u540e\u5c31\u901a\u8fc7 payload \u4e2d\u7684\u4ee4\u724c\u627e\u5230\u901a\u8fc7\u8ba4\u8bc1\u7684\u7528\u6237\u5373\u53ef<\/p>\n<p>\u6ca1\u660e\u767d\u4f60\u8fd9\u4e2a\u4ee4\u724c\u4ec0\u4e48\u610f\u601d\u3002\u6211\u89c9\u5f97\u4ed6\u8981\u4e0d\u662f\u5305\u542b\u7528\u6237 ID\uff0c\u8981\u4e0d\u5c31\u662f\u4e2a session key \u3002\u5982\u679c\u5b83\u5c31\u662f session key\uff0c\u90a3\u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u7528 session\uff0c\u4f55\u5fc5\u5f04 JWT \u3002<\/p>\n<p>\u4f60\u8fd8\u662f\u6ca1\u7406\u89e3 JWT \u548c Session \u7684\u533a\u522b\u3002Session \u7684\u597d\u5904\u662f\u53ef\u4ee5\u968f\u65f6\u4fee\u6539\u968f\u65f6\u540a\u9500\u3002JWT \u7684\u597d\u5904\u662f\u53ef\u4ee5\u79bb\u7ebf\u9a8c\u8bc1\uff0c\u56e0\u6b64\u5fae\u670d\u52a1\u4e0d\u9700\u8981\u603b\u662f\u548c\u4e2d\u592e\u6743\u9650\u7cfb\u7edf\u4ea4\u4e92\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698282\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : PetterZhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             http \u662f\u77ed\u94fe\u63a5\uff0ctcp \u6ca1\u6709\u4e00\u76f4\u4fdd\u6301\u8fde\u63a5\uff0c\u65e0\u72b6\u6001\u5e94\u8be5\u662f\u6307\u8fd9\u79cd\u7684\u65e0\u72b6\u6001\u5427\uff0c \u600e\u4e48\u626f\u5230 cookie,session \u5462?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698283\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wangritian \u6211\u73b0\u5728\u8ba4\u4e3a\u5982\u679c\u8981\u9075\u5faa REST\uff0c\u4f1a\u8bdd\u6570\u636e\u5c31\u4e0d\u5e94\u8be5\u7531\u670d\u52a1\u7aef\u751f\u6210\uff0c\u7136\u540e\u653e\u5728\u5ba2\u6237\u7aef\uff0c\u7136\u540e\u8fd8\u7ede\u5c3d\u8111\u6c41\u60f3\u7740\u600e\u4e48\u624d\u80fd\u4e0d\u6cc4\u9732\u3001\u7be1\u6539\u3001\u4f2a\u9020\u548c\u91cd\u653e\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698284\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kop1989 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 #24 <br \/>\u4ece\u6211\u7684\u7406\u89e3\u6765\u770b\u3002<\/p>\n<p>1 \u3001\u201c\u72b6\u6001\u6807\u8bc6\u201d\u662f\u5fc5\u7136\u8981\u5b58\u7684\u3002<br \/>2 \u3001\u201c\u72b6\u6001\u6807\u8bc6\u201d\u4e0d\u5b58\u5728\u201c\u88ab\u8c03\u7528\u65b9\u201d\uff08\u7edd\u5927\u591a\u6570\u60c5\u51b5\u7684\u670d\u52a1\u5668\u7aef\uff09\uff0c\u5c31\u4e00\u5b9a\u5b58\u5728\u8c03\u7528\u65b9\uff08\u7edd\u5927\u591a\u6570\u60c5\u51b5\u7684\u5ba2\u6237\u7aef\uff09\u3002<br \/>3 \u3001\u670d\u52a1\u5668\u7aef\u5176\u5b9e\u662f\u77e5\u6653\uff0c\u4e14\u9700\u8981\u5904\u7406\u201c\u72b6\u6001\u6807\u8bc6\u201d\u7684\uff0c\u5426\u5219\u4f60\u76f8\u540c\u5ba2\u6237\u7aef\u8c03\u7528\u4e24\u4e2a api\uff0c\u903b\u8f91\u600e\u4e48\u8d2f\u901a\uff1f<\/p>\n<p>\u7efc\u5408\u4e0a\u6587 1 \u30012 \u30013 \u3002\u670d\u52a1\u5668\u7aef\u4e0d\u5b58\u201c\u72b6\u6001\u6807\u5fd7\u201d == \u65e0\u72b6\u6001 == REST                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698285\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u60f3\u6cd5\u53cd\u4e86\u3002<\/p>\n<p>\u53ef\u4ee5\u8fd9\u4e48\u7406\u89e3\uff1a<br \/>\u6070\u6070\u662f\u56e0\u4e3a\u5ba2\u6237\u7aef\u4fdd\u5b58\u4e86\u4f1a\u8bdd\uff0c\u6240\u4ee5\u624d\u80fd\u505a\u5230\u65e0\u72b6\u6001\u3002<br \/>\u5982\u679c\u5ba2\u6237\u7aef\u4e0d\u4fdd\u5b58\u4f1a\u8bdd\uff0c\u90a3\u4e48\u8bf7\u6c42\u5c31\u65e0\u6cd5\u505a\u5230\u65e0\u72b6\u6001\u3002<\/p>\n<p>\u6bd4\u5982\u8bf4\u4f60\u8981\u505a\u4e00\u4e2a\u5728\u7ebf\u5546\u57ce\uff0c\u6709\u8d2d\u7269\u8f66\u7ec4\u4ef6\u3002<br \/>\u5982\u679c\u8d2d\u7269\u8f66\u5b58\u5728\u670d\u52a1\u5668\u7aef\uff0c\u90a3\u4e48\u5f53\u4f60\u6709\u5f88\u591a\u670d\u52a1\u5668\u7684\u65f6\u5019\uff0cCDN \u6d3e\u53d1\u5230\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\uff0c\u90a3\u4f60\u8d2d\u7269\u8f66\u5c31\u7a7a\u4e86\uff0c\u56e0\u4e3a\u4f60\u7684\u4f1a\u8bdd\u5728\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u4e0d\u53ef\u7528\u3002\u5982\u679c\u662f\u5ba2\u6237\u7aef\u4f1a\u8bdd\uff0c\u90a3\u4e48\u6362\u4e86\u4e00\u53f0\u670d\u52a1\u5668\u4ee5\u540e\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4ece\u5ba2\u6237\u7aef\u53d1\u6765\u7684\u4f1a\u8bdd\u91cc\u8bfb\u53d6\u6570\u636e\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u4f60\u4e5f\u53ef\u4ee5\u628a\u8d2d\u7269\u8f66\u5b58\u5728\u4e2d\u592e\u5b58\u50a8\u533a\u91cc\uff08\u4f8b\u5982\u6570\u636e\u5e93\u6216\u8005\u5185\u5b58\u6570\u636e\u96c6\u7fa4\u7b49\uff09\uff0c\u4f46\u662f\u8fd9\u6837\u53c8\u4f1a\u589e\u52a0\u670d\u52a1\u5668\u95f4\u7684\u901a\u8baf\u91cf\uff0c\u4ee5\u53ca\u628a\u66f4\u591a\u7684\u538b\u529b\u653e\u5728\u4e00\u4e2a\u5355\u4e00\u670d\u52a1\uff08\u6570\u636e\u5e93\uff09\u4e0a\u3002<\/p>\n<p>\u65e0\u72b6\u6001\u7684\u8bdd\uff0c\u5ba2\u6237\u4f1a\u8bdd\u662f\u7531\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u7aef\u5904\u7406\u7684\uff0c\u800c\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\u662f\u53ef\u4ee5\u5927\u91cf\u6a2a\u5411\u6269\u5c55\u7684\uff0c\u4eba\u591a\u7684\u670d\u52a1\u4f60\u5806\u4e2a\u4e00\u4e07\u53f0\u673a\u5668\u4e0a\u53bb\u5c31\u7ed3\u4e86\u3002<\/p>\n<p>\u6570\u636e\u5e93\u4f60\u548b\u5806\u670d\u52a1\u5668\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698286\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @kop1989 \u95ee\u9898\u5c31\u662f\uff0c\u73b0\u5728\u6211\u8ba4\u4e3a\u5728 REST \u4e0b\uff0c\u4e24\u6b21\u8bf7\u6c42\u5c31\u4e0d\u5e94\u8be5\u7528\u4f1a\u8bdd\u8fd9\u4e2a\u6982\u5ff5\u6765\u8d2f\u901a\uff0c\u5e94\u8be5\u662f\u662f\u6beb\u65e0\u5173\u7cfb\u624d\u5bf9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698287\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @msg7086 \u4f60\u8bf4\u7684\u6211\u57fa\u672c\u4e0a\u90fd\u660e\u767d\uff0c\u4f46\u6211\u7684\u610f\u601d\u662f\u201c\u72b6\u6001\u201d\u4e0d\u5e94\u8be5\u7531\u670d\u52a1\u7aef\u751f\u6210\uff08\u505a\u51b3\u5b9a\uff09\uff0c\u670d\u52a1\u7aef\u6bcf\u6b21\u53ea\u8fd4\u56de\u6570\u636e\u7ed9\u5ba2\u6237\u7aef\u5c31\u53ef\u4ee5\u4e86\uff08\u670d\u52a1\u7aef\u6839\u672c\u4e0d\u5728\u4e4e\u4e4b\u524d\u8bf7\u6c42\u53d1\u751f\u8fc7\u4ec0\u4e48\uff09\uff0c\u5ba2\u6237\u7aef\u63a5\u6536\u5230\u6570\u636e\u4e4b\u540e\uff0c\u8981\u81ea\u5df1\u51b3\u5b9a\u8981\u628a\u4ec0\u4e48\u201c\u72b6\u6001\u201d\u7f13\u5b58\u5728\u5ba2\u6237\u7aef\u672c\u5730\u7f13\u5b58\u4e2d\uff0c\u7136\u540e\u4e0b\u6b21\u53d1\u8d77 api \u8c03\u7528\u65f6\uff0c\u81ea\u5df1\u51b3\u5b9a\u8be5\u4ece\u5ba2\u6237\u7aef\u672c\u5730\u5b58\u50a8\u4e2d\u8bfb\u53d6\u54ea\u4e9b\u5fc5\u987b\u6570\u636e\u5e76\u548c\u8bf7\u6c42\u4e00\u8d77\u53d1\u7ed9\u670d\u52a1\u7aef\u3002\u4e0d\u662f\u670d\u52a1\u7aef\u51b3\u5b9a\u8be5\u628a\u4ec0\u4e48\u201c\u72b6\u6001\u201d\u7f13\u5b58\u5728\u5ba2\u6237\u7aef\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698288\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kop1989 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 #30 <\/p>\n<p>\u6beb\u65e0\u5173\u7cfb\u7406\u8bba\u4e0a\u53ef\u884c\uff0c\u4f46\u6027\u4ef7\u6bd4\u592a\u4f4e\u3002<\/p>\n<p>\u6beb\u65e0\u5173\u7cfb\u5c31\u9700\u8981\u5ba2\u6237\u7aef\u63d0\u4f9b\u4e00\u5207\u5f53\u524d\u72b6\u6001\u7684\u4e1a\u52a1\u4fe1\u606f\uff0c\u4f9b\u670d\u52a1\u5668\u7aef\u6765\u8fdb\u884c\u903b\u8f91\u5224\u65ad\u3002<br \/>\u8fd9\u5c31\u6781\u5927\u7684\u52a0\u5267\u4e86\u6bcf\u4e2a\u63a5\u53e3\u670d\u52a1\u5668\u7aef\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u4fe1\u606f\u541e\u5410\u91cf\u3002<\/p>\n<p>\u800c\u4e14\u4e5f\u52a0\u5267\u4e86\u7a0b\u5e8f\u7684\u5f00\u53d1\u590d\u6742\u5ea6\u548c\u8026\u5408\u5ea6\u3002<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4f60\u8003\u8bd5\u5199\u540d\u5b57 or \u8eab\u4efd\u8bc1\u53f7\u5c31\u53ef\u4ee5\u4e86\u3002\u5c31\u662f\u56e0\u4e3a\u4f60\uff08\u5ba2\u6237\u7aef\uff09\u548c\u5b66\u6821\uff08\u670d\u52a1\u5668\u7aef\uff09\u4e4b\u95f4\uff0c\u901a\u8fc7\u8003\u8bd5\u62a5\u540d\u5b9e\u73b0\u4e86\u9884\u8bbe\u4fe1\u606f\u6c9f\u901a\uff08\u767b\u5f55\uff09\u3002<\/p>\n<p>\u5426\u5219\u4f60\u6bcf\u53c2\u52a0\u4e00\u79d1\u8003\u8bd5\uff0c\u90fd\u9700\u8981\u586b\u5199\u5de8\u91cf\u7684\u4e2a\u4eba\u8eab\u4efd\u4fe1\u606f\u3002\u8fd9\u6837\u975e\u5e38\u7684\u4e0d\u73af\u4fdd\uff0c\u4e5f\u589e\u52a0\u4e86\u4f60\u586b\u9519\u7684\u53ef\u80fd\u6027\u3002\u66f4\u4e25\u91cd\u4e00\u70b9\u4f1a\u9020\u6210\u4f60\u5f53\u573a\u7684\u8003\u5377\u4f5c\u5e9f\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698289\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u4f1a\u8bdd\u6570\u636e\u4e0d\u662f\u7f13\u5b58\u3002<br \/>\u751a\u81f3\u5f88\u591a\u65f6\u5019\u8fd9\u4e2a\u4f1a\u8bdd\u662f\u5bf9\u5ba2\u6237\u7aef\u52a0\u5bc6\u7684\uff0c\u53ea\u6709\u670d\u52a1\u5668\u80fd\u8bfb\u53d6\u5176\u4e2d\u7684\u5185\u5bb9\u3002<br \/>\u5bf9\u5ba2\u6237\u7aef\u6765\u8bf4\uff0c\u4f1a\u8bdd\u5c31\u53ea\u662f\u4e00\u5768\u4ed6\u770b\u4e0d\u61c2\u7684\u4e1c\u897f\u800c\u5df2\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698290\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @msg7086 \u90a3\u5c31\u662f\u4e86\uff0c\u5b8c\u5168\u662f\u670d\u52a1\u7aef\u5728\u628a\u63a7\u7684\u4e1c\u897f\uff08\u53ea\u4e0d\u8fc7\u5b58\u5728\u5ba2\u6237\u7aef\uff09\uff0c\u8fd8\u80fd\u8bf4\u670d\u52a1\u7aef\u201c\u65e0\u72b6\u6001\u201d\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698291\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Vegetable <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u662f\u5728\u8bf4\u201c\u6211\u7684\u5b9a\u4e49\u548c\u4f60\u4e0d\u4e00\u6837\uff0c\u6240\u4ee5\u4f60\u9519\u4e86\u201d<\/p>\n<p>\u4f60\u5e72\u8106\u8bf4 stateless \u5e76\u4e0d\u5e94\u8be5\u7ffb\u8bd1\u6210\u65e0\u72b6\u6001\u7b97\u4e86\uff0c\u56e0\u4e3a\u4e86 less \u662f\u5c11\uff0c\u800c\u4e0d\u662f\u65e0\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698292\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wangritian <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u62b1\u6b49\u5bf9 REST \u4e0d\u662f\u5f88\u4e86\u89e3\uff0c\u629b\u5f00\u5b9a\u4e49\u4e0d\u8c08\uff0c\u4e1a\u52a1\u63a5\u53e3\u4e0d\u53ef\u80fd\u65e0\u72b6\u6001\u5bf9\u5427\uff0c\u4f60\u4e0d\u80fd\u8ba9\u7528\u6237\u5e72\u4ec0\u4e48\u90fd\u63d0\u4ea4\u8d26\u53f7\u5bc6\u7801\u3002\u4e0b\u4e00\u6b65\u5c31\u662f\u5ba2\u6237\u7aef\u4fdd\u5b58 sessionId \u548c\u5b8c\u6574\u52a0\u5bc6\u6570\u636e\u4e4b\u95f4\u7684\u535a\u5f08\u4e86\uff0c\u6240\u4ee5\u6211\u89c9\u5f97\u65e0\u72b6\u6001\u662f\u600e\u4e48\u5b9a\u4e49\u7684\u4e0d\u91cd\u8981\uff0c\u8ba8\u8bba\u6700\u4f73\u5b89\u5168\u7b56\u7565\u662f\u6700\u91cd\u8981\u7684\u3002\u5982\u679c\u4e00\u5b9a\u8981\u8ba8\u8bba\uff0c\u6211\u8ba4\u4e3a\u662f REST \u672c\u8eab\u8bbe\u8ba1\u5c31\u662f\u65e0\u72b6\u6001\u7684\uff0c\u6bcf\u4e2a\u8bf7\u6c42\u5404\u81ea\u72ec\u7acb\uff0c\u4e0d\u50cf tcp \u6216\u662f NAT \u90a3\u6837\u9700\u8981\u4f9d\u8d56\u524d\u6b21\u8bf7\u6c42\u4fdd\u5b58\u7684\u72b6\u6001\uff1b\u6240\u8c13\u72b6\u6001\u662f\u4f5c\u4e3a REST \u7684\u7528\u6237\u5728\u4e1a\u52a1\u5c42\u9762\u52a0\u4e0a\u53bb\u7684\uff0c\u8ddf\u534f\u8bae\u672c\u8eab\u5176\u5b9e\u65e0\u5173\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698293\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SjwNo1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f88\u591a\u6211\u4eec\u7528 JWT \u53d1\u6325\u4e86\u548c Session \u4e00\u6837\u7684\u529f\u6548\uff0cJWT \u4e0d\u80fd\u968f\u65f6\u540a\u9500\uff0c\u4e24\u8005\u90fd\u9700\u8981 db \u652f\u6301\uff0c\u56e0\u6b64\u6709\u4eba\u8bf4\u5728\u8fd9\u65b9\u9762\u6ca1\u6709\u771f\u6b63\u610f\u4e49\u4e0a\u7684\u65e0\u72b6\u6001                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698294\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u662f\u7684\u3002\u6309\u6211\u7684\u7406\u89e3\uff0cREST \u7684\u8fd9\u79cd\u65e0\u72b6\u6001\u8fd8\u662f\u4f1a\u5141\u8bb8\u4f7f\u7528\u6570\u636e\u5e93\u7684\uff0c\u90a3\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u4e5f\u53ef\u4ee5\u8ba4\u4e3a\u662f\u4e00\u79cd\u201c\u72b6\u6001\u201d\uff0c\u8fd9\u5c31\u8ddf\u201c\u65e0\u72b6\u6001\u201d\u77db\u76fe\u4e86\u3002\u6240\u4ee5\u8fd9\u91cc\u7684\u65e0\u72b6\u6001\u5e94\u8be5\u7406\u89e3\u4e3a\u6ca1\u6709 session \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698295\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : suenlai <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @GeruzoniAnsasu \u6211\u4e5f\u662f\u8fd9\u4e48\u7406\u89e3\u7684.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698296\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u5f53\u7136\u662f\u3002<br \/>\u8fd8\u662f\u90a3\u53e5\u8bdd\uff0c\u6070\u6070\u56e0\u4e3a\u670d\u52a1\u5668\u628a\u6570\u636e\u5b58\u5728\u4e86\u5ba2\u6237\u7aef\u624d\u8ba9\u4ed6\u6210\u4e3a\u4e86\u65e0\u72b6\u6001\u670d\u52a1\u5668\u3002<\/p>\n<p>\u5c31\u50cf\u7d20\u9e21\uff0c\u672c\u8d28\u4e0a\u662f\u8c46\u5236\u54c1\u3002\u4f60\u7a81\u7136\u5192\u51fa\u4e00\u53e5\uff0c\u8fde\u9e21\u90fd\u6ca1\u6709\uff0c\u8fd8\u80fd\u8bf4\u8fd9\u79cd\u98df\u6750\u53eb\u7d20\u9e21\u5417\uff01\u5c31\u6bd4\u8f83\u5c34\u5c2c\u4e86\u3002\u4eba\u5bb6\u5c31\u662f\u8fd9\u4e48\u5b9a\u4e49\u7684\uff0c\u4f60\u89c9\u4e0d\u89c9\u5f97\u4e0d\u5f71\u54cd\u522b\u4eba\u5b9a\u4e49\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698297\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : acmore <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b54\u5b50\u8bf4\u8fc7\uff0c\u53ea\u5199 Code \u4e0d\u8bfb\u8bba\u6587\u4f1a\u8ff7\u832b\uff0c\u53ea\u8bfb\u8bba\u6587\u4e0d\u5199 Code \u662f\u6709\u5bb3\u7684\u3002\u5b9e\u8df5\u4e00\u4e0b\u5c31\u80fd\u660e\u767d\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837\u4e86\u3002<br \/>\u4ee5\u53ca\u4f60\u5148\u524d\u4ee5\u4e3a\u7684\u65e0\u72b6\u6001\u662f\u54ea\u54ea\u90fd\u4e0d\u5b58\u72b6\u6001\uff0c\u8fd9\u4ece\u6570\u5b66\u4e0a\u5c31\u662f\u4e0d\u53ef\u80fd\u7684\uff0c\u4e00\u5b9a\u8981\u6709\u4e00\u4e2a\u72b6\u6001\u3002\u53ea\u4e0d\u8fc7\u670d\u52a1\u7aef\u7684\u72b6\u6001\u7275\u5236\u4e86\u5f88\u591a\u4e1c\u897f\uff0c\u6240\u4ee5\u653e\u5728\u5ba2\u6237\u7aef\u5e72\u51c0\u5229\u7d22\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698298\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u5c31\u597d\u50cf\u8bf4 serverless \u662f\u4e0d\u662f\u771f\u7684\u6ca1\u6709\u670d\u52a1\u5668\u4e86\uff1f<br \/>stateless \u662f\u4e3a\u4e86\u670d\u52a1\u6c34\u5e73\u6269\u5c55\u8bbe\u8ba1\u7684\u6982\u5ff5\u3002stateless \u5c31\u662f\u8bf4\u4f60\u53ef\u4ee5\u628a\u670d\u52a1\u5668\u4efb\u610f\u90e8\u7f72\u540a\u9500\uff0c\u4f46\u53ea\u8981\u6709\u4e00\u4e2a\u5b9e\u4f8b\u5b58\u5728\u5c31\u4e0d\u4f1a\u5bfc\u81f4\u670d\u52a1\u53d1\u751f\u6545\u969c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698299\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : icyalala <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4eba\u5bb6\u8bf4\u7684 stateless-server \u662f\u6709\u4e0a\u4e0b\u6587\u542b\u4e49\u7684\u3002<br \/>\u4f60\u975e\u8981\u628a state \u542b\u4e49\u6269\u5927\u5316\uff0c\u7136\u540e\u628a\u4eba\u5bb6\u6279\u5224\u4e00\u756a\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698300\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @kop1989 \u6211\u5f53\u7136\u77e5\u9053\u8981\u6709\u72b6\u6001\uff0c\u6211\u4e5f\u77e5\u9053\u653e\u5728\u670d\u52a1\u7aef\u4e0d\u5bf9\uff0c\u5e94\u8be5\u653e\u5728\u5ba2\u6237\u7aef\uff0c\u4f46\u662f\u6211\u89c9\u5f97\u8fd9\u4e9b\u72b6\u6001\u4e0d\u5e94\u8be5\u7531\u670d\u52a1\u7aef\u751f\u6210\u548c\u8bfb\u53d6\uff0c\u5e94\u8be5\u7531\u5ba2\u6237\u7aef\u81ea\u5df1\u751f\u6210\u672c\u6b21\u4ea4\u4e92\u8fc7\u7a0b\u7684\u72b6\u6001\u5e76\u5b58\u5728\u672c\u5730\u5b58\u50a8\uff0c\u7136\u540e\u5ba2\u6237\u7aef\u53d1\u8d77\u8bf7\u6c42\u65f6\uff0c\u4ece\u672c\u5730\u5b58\u50a8\u4e2d\u53d6\u51fa\u6765\u76f4\u63a5\u544a\u77e5\u670d\u52a1\u7aef\uff0c\u800c\u4e0d\u662f\u201c\u6211\u628a\u4ea4\u4e92\u72b6\u6001\u90fd\u53d1\u7ed9\u4f60\u4e86\uff0c\u4f60\u81ea\u5df1\u770b\u7740\u9009\u7528\u5427\u201d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698301\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @acmore \u72b6\u6001\u653e\u5728\u5ba2\u6237\u7aef\u6ca1\u6bdb\u75c5\uff0c\u4f46\u662f\u72b6\u6001\u4e0d\u5e94\u8be5\u201c\u7531\u670d\u52a1\u7aef\u751f\u6210\uff0c\u7136\u540e\u653e\u5728\u5ba2\u6237\u7aef\u201d\uff0c\u5e94\u8be5\u201c\u7531\u5ba2\u6237\u7aef\u751f\u6210\uff0c\u7136\u540e\u653e\u5728\u5ba2\u6237\u7aef\u201d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698302\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @icyalala \u6211\u6ca1\u6709\u5426\u5b9a\uff0c\u4e5f\u4e0d\u6562\u8f7b\u6613\u5426\u5b9a\uff0c\u4f46\u662f\u786e\u5b9e\u6709\u8d28\u7591\uff0c\u8d28\u7591\u4e00\u4e0b\u6ca1\u6bdb\u75c5\u5427\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698303\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : libook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u201cIn computing, a stateless protocol is a communications protocol in which no session information is retained by the receiver, usually a server.\u201d\u2014\u2014Wikipedia: Stateless protocol<\/p>\n<p>\u9996\u5148\uff0c\u201c\u65e0\u72b6\u6001\u201d\u662f\u4e2a\u7b80\u79f0\uff0c\u5b9e\u9645\u6307\u7684\u662f\u201cServer \u65e0\u72b6\u6001\u201d\uff0c\u5373\u5728\u62bd\u8c61\u610f\u4e49\u4e0a\uff0cServer \u5728\u5904\u7406\u8bf7\u6c42\u7684\u65f6\u5019\u4e0d\u4f9d\u8d56 Server \u5f53\u524d\u7684\u72b6\u6001\u3002<br \/>\u4e3e\u4e2a\u4f9d\u8d56 Server \u5f53\u524d\u72b6\u6001\u7684\u4f8b\u5b50\u5c31\u662f\u4f20\u7edf\u7684 Session \u6a21\u5f0f\uff1a\u7528\u6237\u7684\u767b\u5f55\u4f1a\u8bdd\u4fe1\u606f\u4fdd\u5b58\u5728 Server \u4e0a\uff0cClient \u4e0a\u4ec5\u4fdd\u5b58 Session ID\uff0cClient \u53d1\u9001\u643a\u5e26 Session ID \u7684\u8bf7\u6c42\u5230 Server\uff0cServer \u8bfb\u53d6\u672c\u5730\u7684 Session \u5185\u5bb9\u6765\u786e\u5b9a\u7528\u6237\u5f53\u524d\u7684\u72b6\u6001\uff0c\u518d\u5904\u7406\u8bf7\u6c42\u3002<br \/>\u800c\u65e0\u72b6\u6001\u5c31\u662f Server \u5728\u63a5\u6536\u5230\u8bf7\u6c42\u4e4b\u540e\u4e0d\u9700\u8981\u8bfb\u53d6\u81ea\u5df1\u5728\u7528\u6237\u4e4b\u524d\u7684\u8bf7\u6c42\u6240\u7559\u4e0b\u6765\u7684 Session \u6570\u636e\uff0c\u4ec5\u51ed\u501f Client \u8bf7\u6c42\u4e2d\u643a\u5e26\u7684\u4fe1\u606f\u5c31\u53ef\u4ee5\u5b8c\u6210\u7528\u6237\u72b6\u6001\u7684\u5224\u65ad\u3002<\/p>\n<p>\u62ff\u751f\u6d3b\u4e3e\u4f8b\u8bf4\u660e\uff0c\u6bd4\u5982\u4e00\u5bb6\u7406\u53d1\u5e97\uff1a<br \/>\u6709\u72b6\u6001\u6a21\u5f0f\u6bcf\u4f4d\u7406\u53d1\u5e08\u4f1a\u8bb0\u4f4f\u81ea\u5df1\u670d\u52a1\u8fc7\u7684\u6bcf\u4f4d\u987e\u5ba2\u7684\u559c\u597d\uff0c\u6bcf\u6765\u4e00\u4f4d\u987e\u5ba2\uff0c\u90fd\u8981\u95ee\u5176\u4ee5\u524d\u662f\u54ea\u4f4d\u7406\u53d1\u5e08\u4e3a\u5176\u670d\u52a1\u7684\uff0c\u7136\u540e\u770b\u90a3\u4f4d\u7406\u53d1\u5e08\u662f\u5426\u80fd\u7ee7\u7eed\u4e3a\u8fd9\u4f4d\u987e\u5ba2\u7406\u53d1\uff0c\u5982\u679c\u90a3\u4f4d\u7406\u53d1\u5e08\u62bd\u4e0d\u5f00\u8eab\uff0c\u5c31\u53ef\u4ee5\u628a\u987e\u5ba2\u7684\u559c\u597d\u60c5\u51b5\u8bb2\u7ed9\u53e6\u4e00\u4f4d\u7a7a\u95f2\u7684\u7406\u53d1\u5e08\uff0c\u8ba9\u8fd9\u4f4d\u7406\u53d1\u5e08\u6765\u4e3a\u987e\u5ba2\u7406\u53d1\uff1b<br \/>\u65e0\u72b6\u6001\u6a21\u5f0f\u5c31\u662f\u7406\u53d1\u5e08\u4e0d\u9700\u8981\u8bb0\u4f4f\u987e\u5ba2\u7684\u559c\u597d\uff0c\u6bcf\u4f4d\u987e\u5ba2\u6765\u4e86\u5c31\u53ef\u4ee5\u5206\u914d\u4e00\u4f4d\u7a7a\u95f2\u7684\u7406\u53d1\u5e08\uff0c\u7136\u540e\u9700\u8981\u987e\u5ba2\u628a\u9700\u6c42\u4ea4\u4ee3\u6e05\u695a\uff0c\u7406\u53d1\u5e08\u6309\u7167\u9700\u6c42\u8fdb\u884c\u6b64\u6b21\u7406\u53d1\u670d\u52a1\u3002<\/p>\n<p>\u65e0\u72b6\u6001\u597d\u5904\u6709\u5f88\u591a\uff0c\u4e3b\u8981\u7684\u51e0\u70b9\uff1a<br \/>1. Client \u7684\u8bf7\u6c42\u5bf9 Server \u4e00\u89c6\u540c\u4ec1\uff0c\u7406\u8bba\u4e0a\u6b64\u670d\u52a1\u96c6\u7fa4\u7684\u4efb\u4f55\u4e00\u4e2a Server \u968f\u65f6\u90fd\u6709\u80fd\u529b\u6b63\u786e\u5904\u7406 Client \u7684\u8bf7\u6c42\u3002<br \/>2. Server \u5bf9 Client \u7684\u8bf7\u6c42\u4e00\u89c6\u540c\u4ec1\uff0c\u5904\u7406\u6bcf\u4e2a\u8bf7\u6c42\u4e0d\u9700\u8981\u53c2\u8003\u540c\u4e00\u7528\u6237\u524d\u51e0\u6b21\u53d1\u4e86\u4ec0\u4e48\u6b21\u8bf7\u6c42\uff0c\u4ec5\u8003\u8651\u5f53\u524d\u8bf7\u6c42\u5305\u542b\u4e86\u54ea\u4e9b\u4fe1\u606f\u3002<br \/>3. \u670d\u52a1\u96c6\u7fa4\u4e0d\u9700\u8981\u8003\u8651\u662f\u5426\u8981\u540c\u6b65\u5404\u4e2a Server \u7684\u72b6\u6001\uff0c\u56e0\u4e3a Server \u65e0\u72b6\u6001\u53ef\u540c\u6b65\u3002<br \/>4. \u8d1f\u8f7d\u5747\u8861\u4e0d\u9700\u8981\u8003\u8651\u5f15\u5bfc\u8bf7\u6c42\u5230\u96c6\u7fa4\u4e2d\u7279\u5b9a\u7684 Server\uff0c\u53ef\u4ee5\u653e\u5fc3\u5730\u6309\u7167\u5b9e\u9645\u8d1f\u8f7d\u5206\u5e03\u6765\u5206\u53d1\u8bf7\u6c42\u3002<br \/>\u8fdb\u4e00\u6b65\u4ea7\u751f\u7684\u597d\u5904\u4e3a\uff1a<br \/>1. \u670d\u52a1\u5668\u7a0b\u5e8f\u8bbe\u8ba1\u7b80\u5355\uff0c\u6bcf\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u8fc7\u7a0b\u662f\u72ec\u7acb\u7684\u3002\u4e0d\u4f1a\u9047\u5230\u8bf7\u6c42\u4e0e\u8bf7\u6c42\u4e4b\u95f4\u7684\u903b\u8f91\u5173\u7cfb\u800c\u5bfc\u81f4\u7a0b\u5e8f\u590d\u6742\u3002\u7531\u6b64\u63a5\u53e3\u8bbe\u8ba1\u6a21\u5f0f\u53ef\u4ee5\u5f88\u7b80\u5355\u3001\u6e05\u6670\u3002<br \/>2. \u670d\u52a1\u96c6\u7fa4\u6027\u80fd\u662f\u548c\u673a\u5668\u6570\u91cf\u7b49\u6bd4\u76f8\u5173\u7684\uff0c\u6027\u80fd\u4e0d\u591f\u52a0\u673a\u5668\u5c31\u884c\uff0c\u4e0d\u4f1a\u56e0\u4e3a\u52a0\u673a\u5668\u800c\u4ea7\u751f\u989d\u5916\u7684\u5f00\u9500\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u65e0\u72b6\u6001\u8bbe\u8ba1\u4e5f\u4f1a\u6709\u4e00\u4e9b\u4ee3\u4ef7\uff0c\u6bd4\u5982\u6bcf\u4e2a\u8bf7\u6c42\u90fd\u9700\u8981\u643a\u5e26\u8f83\u591a\u7684\u72b6\u6001\u6570\u636e\uff0c\u800c Server \u53ef\u80fd\u4e5f\u9700\u8981\u6bcf\u6b21\u6536\u5230\u8bf7\u6c42\u90fd\u6267\u884c\u4e00\u904d\u5bf9\u8bf7\u6c42\u4e2d\u72b6\u6001\u6570\u636e\u7684\u89e3\u6790\u3002<\/p>\n<p>\u7cfb\u7edf\u67b6\u6784\u4e0a\u7684\u6982\u5ff5\u90fd\u662f\u62bd\u8c61\u610f\u4e49\u4e0a\u7684\uff0c\u6bd4\u5982\u65e0\u72b6\u6001\u6982\u5ff5\u91cc\u7684\u201cServer\u201d\u6307\u7684\u4e0d\u662f\u6211\u4eec\u4e00\u822c\u8bf4\u7684\u7269\u7406\u610f\u4e49\u4e0a\u7684\u670d\u52a1\u5668\u8ba1\u7b97\u673a\uff0c\u800c\u662f\u5728\u7cfb\u7edf\u67b6\u6784\u4e0a\u5904\u7406\u4e1a\u52a1\u8bf7\u6c42\u7684\u90a3\u90e8\u5206\u7a0b\u5e8f\uff0c\u8fd9\u5176\u4e2d\u751a\u81f3\u90fd\u4e0d\u5305\u62ec\u5e95\u5c42\u6570\u636e\u5e93\uff0c\u4f46\u53ef\u80fd\u5305\u62ec\u6216\u4e0d\u5305\u62ec\u5b9e\u9645\u5b9e\u65bd\u4e2d\u4f7f\u7528\u7684\u4e00\u4e9b\u4e2d\u95f4\u4ef6\u3002<br \/>\u6240\u4ee5\u5728\u5c1d\u8bd5\u7406\u89e3\u7cfb\u7edf\u67b6\u6784\u6982\u5ff5\u7684\u65f6\u5019\uff0c\u8981\u5148\u7406\u89e3\u6982\u5ff5\u91cc\u7684\u6bcf\u4e2a\u540d\u8bcd\u7a76\u7adf\u4ee3\u8868\u7684\u662f\u4ec0\u4e48\uff0c\u518d\u770b\u5b9e\u9645\u5b9e\u65bd\u8fc7\u7a0b\u4e2d\uff0c\u8fd9\u4e2a\u540d\u8bcd\u6307\u7684\u662f\u6574\u4e2a\u7cfb\u7edf\u7684\u54ea\u4e9b\u90e8\u5206\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698304\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : acmore <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u8003\u8651\u8fd9\u6837\u7684\u573a\u666f\uff0c\u5982\u679c\u72b6\u6001\u91cc\u4fdd\u5b58\u7684\u6709\u8fd9\u4e2a\u8d26\u6237\u7684\u6743\u9650\u4fe1\u606f\uff0c\u4e14\u8fd9\u4fe1\u606f\u662f\u8981\u7528\u975e\u5bf9\u79f0\u7b97\u6cd5\u52a0\u5bc6\u7684\u3002\u90a3\u4e48\u5982\u679c\u5ba2\u6237\u7aef\u751f\u6210\u72b6\u6001\u5c31\u610f\u5473\u7740\u6743\u9650\u7684\u63a7\u5236\u548c\u79c1\u94a5\u90fd\u8981\u4ea4\u7ed9\u5ba2\u6237\u7aef\uff0c\u8fd9\u6837\u662f\u4e0d\u53ef\u4ee5\u7684\u3002\u6700\u7ec8\u7684\u63a7\u5236\u8fd8\u662f\u8981\u7531\u670d\u52a1\u7aef\u5b8c\u6210\uff0c\u5ba2\u6237\u7aef\u53ea\u662f\u8d70\u4e2a\u8fc7\u573a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698305\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @libook \u6211\u548c\u4f60\u7684\u89c2\u70b9\u6574\u4f53\u4e0a\u662f\u7c7b\u4f3c\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698306\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : libook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u5728\u4e3b\u9898\u5185\u5bb9\u4e2d\uff0c\u4f60\u5176\u5b9e\u592a\u7ea0\u7ed3\u4e8e\u201c\u65e0\u72b6\u6001\u201d\u672c\u8eab\u7684\u542b\u4e49\u4e86\uff0c\u4f46 REST \u7684\u4f5c\u8005\u53ef\u4e0d\u662f\u8fd9\u4e48\u60f3\u7684\uff0c\u4f60\u770b\u8bba\u6587\u7684\u524d\u51e0\u4e2a\u7ae0\u8282\uff0c\u4ed6\u53ea\u662f\u5728\u4ee5\u5f80\u7684 API \u8bbe\u8ba1\u65b9\u6cd5\u4e2d\u9047\u5230\u4e86\u4e00\u4e9b\u75db\u70b9\uff0c\u7136\u540e\u5e0c\u671b\u501f\u52a9\u201c\u65e0\u72b6\u6001\u201d\u7684\u601d\u8def\u6765\u89e3\u51b3\u8fd9\u4e9b\u75db\u70b9\u800c\u5df2\uff0c\u5b9e\u73b0\u7eaf\u7cb9\u7684\u201c\u65e0\u72b6\u6001\u201d\u672c\u8eab\u5e76\u4e0d\u662f REST \u6240\u8ba8\u8bba\u7684\u6838\u5fc3\u95ee\u9898\u3002<br \/>\u5c31\u50cf\u6211\u4eec\u73b0\u5728\u5728\u7a0b\u5e8f\u4e0a\u6240\u8bf4\u7684\u201c\u5f02\u6b65\u201d\uff0c\u5b9e\u9645\u4e0a\u662f\u4e3a\u201c\u540c\u6b65\u201d\u9700\u6c42\u670d\u52a1\u7684\uff0c\u6211\u5e0c\u671b\u591a\u4e2a\u4e1a\u52a1\u903b\u8f91\u80fd\u540c\u6b65\u6267\u884c\uff0c\u6240\u4ee5\u9700\u8981\u6280\u672f\u6808\u5177\u5907\u5f02\u6b65\u5904\u7406\u7684\u80fd\u529b\uff0c\u5373\u5728\u4e00\u4e2a\u4e1a\u52a1\u6b63\u5728\u5904\u7406\u7684\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u540c\u65f6\u54cd\u5e94\u53e6\u4e00\u4e2a\u4e1a\u52a1\uff08\u6709\u4ec0\u4e48\u6d3b\u5c31\u505a\u4ec0\u4e48\u6d3b\uff0c\u4e0d\u7b49\u7740\uff09\u3002\u5728\u751f\u6d3b\u4e2d\uff0c\u201c\u6211\u4e00\u8fb9\u6253\u7535\u8bdd\u4e00\u8fb9\u6572\u4ee3\u7801\u201d\u8fd9\u79cd\u5728\u8bed\u8a00\u8868\u8fbe\u4e0a\u4e0d\u80fd\u88ab\u79f0\u4e3a\u201c\u5f02\u6b65\u201d\uff08\u867d\u7136\u804c\u4e1a\u75c5\u4f1a\u9996\u5148\u60f3\u5230\u201c\u5f02\u6b65\u201d\uff09\uff0c\u800c\u662f\u6211\u5728\u540c\u6b65\u505a\u4e24\u4ef6\u4e8b\u60c5\uff08\u6211\u6709\u5f02\u6b65\u505a\u4e8b\u7684\u80fd\u529b\uff0c\u53ef\u4ee5\u968f\u65f6\u5728\u60f3\u4e0b\u4e00\u884c\u4ee3\u7801\u548c\u4e0b\u4e00\u53e5\u56de\u7b54\u4e4b\u95f4\u5207\u6362\uff09\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698307\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lihongming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u5ba2\u6237\u7aef\u5e94\u8be5\u4fdd\u5b58\u54ea\u4e9b\u6570\u636e\u5e76\u6ca1\u6709\u4e00\u4e2a\u6807\u51c6\uff0c\u751a\u81f3\u90fd\u6ca1\u6709\u6700\u4f73\u5b9e\u8df5\uff0c\u770b\u4f60\u81ea\u5df1\u7684\u9700\u8981\u548c\u53d6\u820d\u3002<\/p>\n<p>\u5c31 AWS \u7684\u8eab\u4efd\u9a8c\u8bc1\u670d\u52a1\uff08 Cognito \uff09\u6240\u4f7f\u7528\u7684 JWT \u6765\u770b\uff0c\u5b83\u5e76\u6ca1\u6709\u628a\u6743\u9650\u653e\u5230\u5ba2\u6237\u7aef\uff0c\u4f46\u653e\u4e86\u7528\u6237\u7684\u89d2\u8272\u548c\u7528\u6237\u7ec4\uff0c\u4f60\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698308\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lihongming \u4f60\u8bf4\u5230 AWS \u7684\u60c5\u51b5\uff0c\u6211\u731c\u6d4b\u53ef\u80fd\u662f AWS \u5f15\u5165\u4e86 RBAC \u6a21\u578b\uff0c\u5e76\u4e14\u89d2\u8272\u4e0e\u4f1a\u8bdd\u7ed1\u5b9a\u4e86\uff0c\u624d\u4f1a\u5f15\u53d1\u4e0d\u5f97\u4e0d\u8fd9\u4e48\u505a\u3002<\/p>\n<p>\u6bd4\u5982\uff0c\u6211\u6709\u4e00\u4e2a\u8d26\u6237\uff0c\u5373\u5c5e\u4e8e\u8fd0\u8425\u4eba\u5458\u89d2\u8272\uff0c\u53c8\u5c5e\u4e8e\u67d0\u79cd\u7ba1\u7406\u4eba\u5458\u89d2\u8272\uff0c\u4f46\u8fd0\u884c\u65f6\u89d2\u8272\u53ea\u80fd\u4e8c\u9009\u4e00\uff0c\u5373\u89d2\u8272\u8fd0\u884c\u65f6\u4e92\u65a5\uff0c\u90a3\u5c31\u8981\u8fd9\u4e48\u505a\u4e86\u3002\u6b64\u65f6\uff0c\u5982\u679c\u6211\u6709\u4e24\u4e2a\u6d4f\u89c8\u5668\uff0c\u90fd\u7528\u8fd9\u4e2a\u8d26\u53f7\u767b\u9646\uff0c\u4e00\u4e2a\u6d4f\u89c8\u5668\u767b\u9646\u540e\u9009\u62e9\u8fd0\u8425\u4eba\u5458\uff0c\u4e00\u4e2a\u6d4f\u89c8\u5668\u767b\u9646\u540e\u9009\u62e9\u7ba1\u7406\u4eba\u5458\uff0c\u90a3\u7528\u8fd9\u79cd\u628a JWT \u5f53\u4f5c\u5ba2\u6237\u7aef\u4f1a\u8bdd\u7684\u65b9\u6cd5\u5c31\u5f88\u5408\u9002\u3002<\/p>\n<p>\u4f46\u662f\u53cd\u8fc7\u6765\uff0c\u4e0d\u5728 JWT \u4e2d\u653e\u5165\u89d2\u8272\uff0c\u4e5f\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u540c\u6837\u7684\u76ee\u7684\u3002\u6bd4\u5982\u670d\u52a1\u7aef\u901a\u8fc7\u4e00\u4e2a\u63a5\u53e3\u8fd4\u56de\u53ef\u9009\u7684\u89d2\u8272\uff0c\u5ba2\u6237\u7aef\u5c55\u73b0\uff0c\u7136\u540e\u7528\u6237\u9009\u62e9\uff0c\u5ba2\u6237\u7aef\u518d\u628a\u7528\u6237\u7684\u9009\u62e9\uff08\u5373\u6240\u8c13\u7684\u201c\u72b6\u6001\u201d\uff09\u4fdd\u5b58\u5728\u5ba2\u6237\u7aef\u672c\u5730\u5b58\u50a8\u4e2d\uff0c\u540e\u9762\u6bcf\u6b21\u8bf7\u6c42\u5e26\u4e0a\u8be5\u89d2\u8272\uff08\u72b6\u6001\uff09\u5373\u53ef\u3002<\/p>\n<p>\u8fd9\u4e24\u79cd\u65b9\u6cd5\uff0c\u90fd\u628a\u72b6\u6001\u5b58\u5728\u4e86\u5ba2\u6237\u7aef\u800c\u4e0d\u662f\u670d\u52a1\u7aef\uff0c\u8fd9\u662f\u662f\u6ca1\u95ee\u9898\u7684\u3002\u4f46\u533a\u522b\u662f\u4e00\u4e2a\u662f\u670d\u52a1\u7aef\u53d1\u8d77\u7684\u4fdd\u5b58\u548c\u8bfb\u53d6\u64cd\u4f5c\uff0c\u53e6\u5916\u4e00\u4e2a\u662f\u5ba2\u6237\u7aef\u81ea\u5df1\u53d1\u8d77\u4fdd\u5b58\u548c\u8bfb\u53d6\u64cd\u4f5c\u3002\u5f88\u7c7b\u4f3c\uff0c\u4f46\u6211\u4e2a\u4eba\u786e\u5b9e\u89c9\u5f97\u670d\u52a1\u7aef\u53d1\u8d77\u548c\u4fdd\u5b58\u548c\u8bfb\u53d6\u64cd\u4f5c\uff0c\u6bd4\u8f83\u522b\u626d\uff0c\u53ef\u80fd\u662f\u6211\u601d\u7ef4\u6709\u70b9\u56fa\u5316\uff0c\u6ca1\u8f6c\u53d8\u8fc7\u6765\u5427\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698309\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Bromine0x23 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u6211\u7684\u610f\u601d\u662f\u4f5c\u8005\u5728\u8bba\u6587\u4e2d\u6240\u8bf4\u7684 Stateless \u6307\u7684\u662f\u4ec5\u670d\u52a1\u7aef\u65e0\u72b6\u6001\u7684 client-stateless-server (CSS) \u98ce\u683c\uff0c\u800c\u4e0d\u662f\u4ece\u5b57\u9762\u7406\u89e3\u7684\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u90fd\u65e0\u72b6\u6001\u3002\u8981\u4ece\u5b9e\u9645\u5b9a\u4e49\u7406\u89e3\u800c\u4e0d\u662f\u671b\u6587\u751f\u4e49                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698310\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ztechstack <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6838\u5fc3\u6982\u5ff5#47 \u8bf4\u7684\u5f88\u660e\u767d<\/p>\n<p>\u7528\u6237 \/\u8ba4\u8bc1\u4fe1\u606f\u3001\u7ec4\u7ec7\u3001\u89d2\u8272\u5728 REST \u91cc\u90fd\u662f\u8d44\u6e90\u3002<br \/>\u4f46\u5728\u5b9e\u9645\u60c5\u51b5\u4e2d\uff0c\u800c\u4e14\u8fd9\u4e9b\u5728\u4e1a\u52a1\u7cfb\u7edf\u4e2d\u5e76\u4e0d\u5b8c\u5168\u9002\u5408\u653e\u5728 url \u91cc\u8fdb\u884c\u4f20\u8f93\uff0c\u56e0\u6b64\u653e\u5728 header(cookie)\u91cc\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698311\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ztechstack <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ztechstack \u800c\u4e14\u5728\u5b9e\u9645\u67b6\u6784\u4e2d\uff0c\u751a\u81f3\u53ef\u4ee5\u5c06\u8ba4\u8bc1\u7684\u6b65\u9aa4\u63d0\u524d\uff0c\u653e\u5728\u7f51\u5173\u7b49\u5916\u90e8\u5c42\u53bb\u5904\u7406\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698312\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tomoya92 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jooooooooo #1 \u9762\u8bd5\u5b98\u559c\u6b22\u95ee                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698313\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bf9\u4e8e\u7528\u6237\u8fd9\u4e00\u5757\uff0c\u5f88\u591a IDP \u7b97\u662f\u6709\u72b6\u6001\u7684\uff0c\u56e0\u4e3a\u5b83\u6709\u7ba1\u7406\u5728\u7ebf\u7528\u6237\u7684\u529f\u80fd\uff0c\u63d0\u4f9b\u4e86 \/logout \u53bb\u5220\u9664 token \u4e4b\u7c7b\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698314\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : charlie21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5443\u4f60\u770b\u89c1\u771f\u5b9e\u60c5\u51b5\u89c9\u5f97\u771f\u5b9e\u60c5\u51b5\u628a\u7406\u8bba\u7ed9\u5426\u5b9a\u4e86\uff0c\u53ef\u7406\u8bba\u6839\u672c\u4e0d\u662f\u4f60\u7406\u89e3\u7684\u90a3\u6837 \u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698315\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dzdh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u628a\u65e0\u72b6\u6001\u7406\u89e3\u6210\u4e0d\u95f4\u65ad\u7684\u72b6\u6001\u4fdd\u6301                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698316\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lihongming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u55ef\uff0c\u4f60\u5bf9 AWS \u7684\u5206\u6790\u6b63\u597d\u8bc1\u660e\u4e86\u6211\u8bf4\u7684\u8bdd\u2014\u2014\u6ca1\u6709\u6807\u51c6\uff0c\u770b\u4f60\u7684\u9700\u8981\u548c\u53d6\u820d<\/p>\n<p>\u5e0c\u671b\u4f60\u80fd\u771f\u6b63\u7406\u89e3\u597d\u8fd9\u53e5\u8bdd\uff0c\u800c\u4e0d\u662f\u5728\u90a3\u4e9b\u6ca1\u7528\u7684\u6982\u5ff5\u4e0a\u7ea0\u7ed3                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698317\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ZSeptember <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5ba2\u6237\u7aef\u751f\u6210\u662f\u4e0d\u53ef\u80fd\u7684\uff0c\u540e\u7aef\u5f97\u9ed8\u8ba4\u5ba2\u6237\u7aef\u4e0d\u53ef\u4fe1\uff0ctoken \u4e4b\u7c7b\u7684\u80af\u5b9a\u5f97\u540e\u7aef\u751f\u6210\u3002<br \/>\u65e0\u72b6\u6001\u53ea\u662f\u6307\u540e\u7aef\u65e0\u72b6\u6001\uff0c\u4e0d\u9700\u8981\u4fdd\u5b58\u7ef4\u6301 session\uff0c\u53ef\u4ee5\u6c34\u5e73\u6269\u5c55\u3002<br \/>session \u6709\u4e0d\u540c\u7ea7\u522b\uff0c\u4e00\u4e2a\u7528\u6237\u767b\u5f55\u4ee5\u540e\u5728 token \u6709\u6548\u671f\u5185\u6240\u6709\u64cd\u4f5c\u90fd\u53ef\u4ee5\u5f53\u4f5c\u4e00\u6b21 session \u5185\u7684\u3002<br \/>\u4e5f\u53ef\u4ee5\u662f\u5355\u6b21 \u6d4f\u89c8\u5668\u4e00\u4e2a\u7a97\u53e3\u7684\uff0c\u6bd4\u5982 \u6d4f\u89c8\u5668\u7684 session storage\uff0c\u4e5f\u53ef\u4ee5\u8bf4\u662f\u5355\u6b21\u94fe\u63a5\u7684\u3002<br \/>\u4e00\u822c\u5728\u7f51\u9875\u7aef\uff0c\u8fd8\u662f\u4f1a\u8ba4\u4e3a \u767b\u5f55\u4ee5\u540e\uff0c\u6240\u6709\u64cd\u4f5c\u90fd\u5728\u540c\u4e00\u4e2a session \u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698318\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ZSeptember \u6211\u8fd9\u91cc\u4e0d\u662f\u8bf4 token \u554a\uff0c\u505a\u8ba4\u8bc1\u7684 token \u5f53\u7136\u5728\u670d\u52a1\u7aef\u751f\u6210\uff0c\u8fd9\u6ca1\u6bdb\u75c5\u3002\u4f46\u662f\u4ea4\u4e92\u8fc7\u7a0b\u4e2d\u53c8\u4e0d\u4ec5\u4ec5\u767b\u9646\u8fd9\u4e00\u79cd\u201c\u72b6\u6001\u201d\uff0c\u8fd8\u6709\u5404\u79cd\u4ea4\u4e92\u72b6\u6001\uff0c\u5f88\u591a\u4eba\u8bf4\u628a\u8fd9\u4e9b\u72b6\u6001\u5168\u90e8\u4e22\u5230\u5ba2\u6237\u7aef\uff0c\u5c31\u6bd4\u5982\u76f4\u63a5\u4e22\u5230 JWT \u4e2d\u3002<\/p>\n<p>\u8fd8\u662f\u62ff\u6211\u4e0a\u9762\u4e3e\u8fc7\u7684\u4f8b\u5b50\u6765\u8bf4\u5427\u3002<\/p>\n<p>\u6bd4\u5982\uff0c\u6211\u6709\u4e00\u4e2a\u8d26\u6237\uff0c\u5373\u5c5e\u4e8e\u8fd0\u8425\u4eba\u5458\u89d2\u8272\uff0c\u53c8\u5c5e\u4e8e\u67d0\u79cd\u7ba1\u7406\u4eba\u5458\u89d2\u8272\uff0c\u4f46\u8fd0\u884c\u65f6\u89d2\u8272\u53ea\u80fd\u4e8c\u9009\u4e00\uff0c\u5373\u89d2\u8272\u8fd0\u884c\u65f6\u4e92\u65a5\u3002\u6bd4\u5982\u670d\u52a1\u7aef\u901a\u8fc7\u4e00\u4e2a\u63a5\u53e3\u8fd4\u56de\u53ef\u9009\u7684\u89d2\u8272\uff0c\u5ba2\u6237\u7aef\u628a\u8fd9\u4e9b\u89d2\u8272\u5c55\u73b0\u7ed9\u7528\u6237\uff0c\u7136\u540e\u7528\u6237\u9009\u62e9\u67d0\u4e2a\u89d2\u8272\uff0c\u5ba2\u6237\u7aef\u518d\u628a\u7528\u6237\u7684\u9009\u62e9\uff08\u5373\u6240\u8c13\u7684\u201c\u72b6\u6001\u201d\uff09\u4fdd\u5b58\u5728\u5ba2\u6237\u7aef\u672c\u5730\u5b58\u50a8\u4e2d\uff0c\u540e\u9762\u6bcf\u6b21\u8bf7\u6c42\u5e26\u4e0a\u8be5\u89d2\u8272\uff08\u72b6\u6001\uff09\u5373\u53ef\u3002<\/p>\n<p>\u6ce8\u610f\uff0c\u8fd9\u4e2a\u72b6\u6001\u53ef\u4e0d\u662f\u670d\u52a1\u7aef\u5728\u670d\u52a1\u7aef\u4ee3\u7801\u91cc\u9762\u751f\u6210\uff0c\u7136\u540e\u518d\u4e22\u5230\u54cd\u5e94\u5934\u6216\u8005\u4e3b\u4f53\u91cc\u9762\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u7684\uff0c\u5c31\u662f\u5730\u5730\u9053\u9053\u5ba2\u6237\u7aef\u81ea\u5df1\u751f\u6210\u5e76\u4fdd\u5b58\u5230\u5ba2\u6237\u7aef\u672c\u5730\u5b58\u50a8\u4e2d\u7684\u3002\u4f60\u80fd\u8bf4\u8fd9\u79cd\u6709\u95ee\u9898\u4e48\uff1f\u518d\u8005\u670d\u52a1\u7aef\u5f53\u7136\u4e0d\u4f1a\u4fe1\u5ba2\u6237\u7aef\u7684\u6570\u636e\u554a\uff0c\u4f46\u662f\u670d\u52a1\u7aef\u672c\u6765\u5c31\u8be5\u505a\u9a8c\u8bc1\u554a\uff0c\u6bd4\u5982\u9a8c\u8bc1\u7528\u6237\u662f\u8c01\uff0c\u5b58\u4e0d\u5b58\u5728\uff0c\u6743\u9650\u591f\u4e0d\u591f\u7b49\u7b49\uff0c\u5ba2\u6237\u7aef\u53d1\u7be1\u6539\u7684\u6570\u636e\u8fc7\u6765\uff0c\u670d\u52a1\u7aef\u9a8c\u8bc1\u4e5f\u8fc7\u4e0d\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698319\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u725b\u903c!\u54d2\u54d2\u54d2\u54d2\u54d2\u54d2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698320\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u4e3b\u4f60\u8fd9\u91cc\u63cf\u8ff0\u7684\u4e0d\u662f\u4e00\u79cd\u4e1a\u52a1\u5b9e\u73b0\u5417\uff0c\u548c\u662f\u4e0d\u662f\u670d\u52a1\u7aef\u751f\u6210\u7684\u6ca1\u6709\u5173\u7cfb\u3002\u4f60\u8bb2\u7684\u8fd9\u4e2a\u4f8b\u5b50\u662f\u8ba9\u7528\u6237\u81ea\u5df1\u9009\u62e9\u89d2\u8272\uff0c\u90a3\u6309\u4f60\u8bb2\u7684\u7ffb\u8fc7\u6765\u7684\u60c5\u51b5\uff0c\u7531\u670d\u52a1\u7aef\u751f\u6210\uff0c\u670d\u52a1\u7aef\u600e\u4e48\u751f\u6210\u5462\uff0c\u670d\u52a1\u5668\u53c8\u4e0d\u53ef\u80fd\u63d0\u524d\u9884\u77e5\u7528\u6237\u8981\u9009\u4ec0\u4e48\u89d2\u8272                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698321\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ZSeptember <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 #62 \u8fd9\u4e2a\u573a\u666f\uff0cJWT \u9700\u8981\u4fdd\u5b58\u6709\u4e00\u4e2a\u7528\u6237\u7684\u89d2\u8272\u5217\u8868\uff0c\u5f53\u524d\u89d2\u8272\u4e0d\u5e94\u8be5\u653e\u5728 JWT \u7684\u3002\u670d\u52a1\u7aef\u4f1a\u6821\u9a8c\u5f53\u524d\u89d2\u8272\u662f\u5426\u5728 JWT \u7684\u89d2\u8272\u5217\u8868\u4e2d\uff0c\u6240\u4ee5\u670d\u52a1\u7aef\u8fd8\u662f\u65e0\u72b6\u6001\u7684\u3002\u5f53\u7136\u8fd9\u540c\u65f6\u4e5f\u66b4\u9732\u4e86 JWT \u7684\u4e00\u4e2a\u7f3a\u9677\uff0c\u65e0\u6cd5\u6ce8\u9500\uff0c\u5982\u679c\u7528\u6237\u89d2\u8272\u8c03\u6574\uff0c\u5220\u9664\u4e86\u4e00\u4e2a\u89d2\u8272\uff0c\u7528\u539f\u6765\u7684 token \u5c31\u53ef\u4ee5\u8d8a\u6743\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698322\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzwb \u53d1\u8d77\u786e\u5b9e\u662f\u7528\u6237\u53d1\u8d77\uff0c\u7136\u540e\u544a\u77e5\u5ba2\u6237\u7aef\uff0c\u7136\u540e\u5ba2\u6237\u7aef\u53d1\u7ed9\u670d\u52a1\u7aef\uff0c\u7136\u540e\u670d\u52a1\u7aef\u751f\u6210\u4f1a\u8bdd\u6570\u636e\uff0c\u7136\u540e\u53d1\u56de\u5230\u5ba2\u6237\u7aef\u4fdd\u5b58\uff0c\u7136\u540e\u4e0b\u6b21\u5ba2\u6237\u7aef\u518d\u81ea\u52a8\u53d1\u56de\u7ed9\u670d\u52a1\u7aef\u3002\u7b2c\u56db\u53e5\u5c31\u662f\u751f\u6210\uff0c\u7136\u540e\u4f60\u4e0d\u89c9\u5f97\u7b2c\u4e09\u53e5\u5230\u7b2c\u4e94\u53e5\u662f\u5728\u515c\u5708\u5b50\u4e48\uff1f\u5ba2\u6237\u7aef\u90fd\u77e5\u9053\u7528\u6237\u5728\u4ea4\u4e92\u4e2d\u7684\u9009\u62e9\u4e86\uff0c\u5e72\u561b\u8fd8\u8981\u53d1\u7ed9\u670d\u52a1\u7aef\uff0c\u76f4\u63a5\u81ea\u5df1\u4fdd\u5b58\u4e0d\u597d\u4e48\uff0c\u7136\u540e\u6bcf\u6b21\u8bf7\u6c42\u90fd\u53d1\u7ed9\u670d\u52a1\u7aef\uff0c\u670d\u52a1\u7aef\u76f4\u63a5\u7528\u4e0d\u5c31\u6210\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698323\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u5982\u679c\u670d\u52a1\u7aef\u4e0d\u4fdd\u5b58\u8fd9\u4e2a\u72b6\u6001\uff0c\u90a3\u5982\u679c\u7528\u6237\u6362\u4e86\u8bbe\u5907\u5462\uff0c\u6216\u8005\u91cd\u65b0\u767b\u5f55\u3002\u5ba2\u6237\u7aef\u7684\u6570\u636e\u6b64\u65f6\u90fd\u6ca1\u4e86\uff0c\u96be\u9053\u8ba9\u7528\u6237\u91cd\u65b0\u518d\u9009\u4e00\u904d\uff0c\u8fd9\u4e2a\u65f6\u5019\u4e0d\u5e94\u8be5\u7531\u670d\u52a1\u5668\u8fd4\u56de\u5386\u53f2\u6570\u636e\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698324\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ZSeptember JWT \u91cc\u9762\u5c31\u4e00\u4e2a\u7528\u6237\u6807\u8bc6\u548c\u8fc7\u671f\u65f6\u95f4\uff0c\u7136\u540e\u5b58\u5728\u5ba2\u6237\u7aef\u672c\u5730\u5b58\u50a8\uff0c\u7528\u6237\u5f53\u524d\u6240\u9009\u7684\u89d2\u8272\u4e5f\u5b58\u5728\u5ba2\u6237\u7aef\u672c\u5730\u5b58\u50a8\uff0c\u6bcf\u6b21\u5411\u670d\u52a1\u7aef\u53d1\u9001\u8bf7\u6c42\uff0c\u76f4\u63a5\u628a JWT \u653e\u5728 Authentication \u5934\u4e2d\uff0c\u628a\u5f53\u524d\u6240\u9009\u7684\u89d2\u8272\u653e\u5728\u8bf7\u6c42\u53c2\u6570\u6216\u8005\u4e3b\u9898\u4e2d\u5373\u53ef\u3002\u5982\u679c\u6709\u4eba\u628a\u5ba2\u6237\u7aef\u9009\u7684\u89d2\u8272\u5220\u4e86\uff0c\u672c\u6b21\u8bf7\u6c42\u4e5f\u9a8c\u8bc1\u4e0d\u8fc7\u554a\uff0c\u8fd4\u56de\u4e00\u4e2a\u4e1a\u52a1\u72b6\u6001\u7801\u5c31\u80fd\u548c\u5ba2\u6237\u7aef\u8bf4\u6e05\u695a\u4e86\u554a\uff0c\u6240\u4ee5\u6709\u4ec0\u4e48\u597d\u62c5\u5fc3\u7684\u5462\uff1f<\/p>\n<p>\u5728\u670d\u52a1\u7aef\u770b\u6765\u6240\u8c13\u7684\u767b\u9646\u5c31\u662f\u521b\u5efa\u4e00\u4e2a\u4ee4\u724c\u8d44\u6e90\uff0c\u4ee4\u724c\u8d44\u6e90\u80fd\u521b\u5efa\uff0c\u5f53\u7136\u5c31\u8be5\u4fdd\u5b58\uff0c\u5f53\u7136\u4e5f\u5c31\u80fd\u5220\u9664\u3002\u670d\u52a1\u7aef\u9881\u53d1 JWT \u540e\uff0c\u5b83\u786e\u5b9e\u80fd\u901a\u8fc7\u9632\u7be1\u6539\u3001\u4f2a\u9020\u7684\u68c0\u67e5\uff0c\u4f46 JWT \u53ea\u4e0d\u8fc7\u662f\u4e00\u4e2a\u58f3\uff0c\u771f\u6b63\u91cd\u8981\u7684\u662f payload \u91cc\u9762\u7684 jwt id\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u8bc6\u522b\u7528\u6237\uff0c\u4e5f\u53ef\u4ee5\u88ab\u56de\u6536\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698325\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzwb \u4f60\u81ea\u5df1\u5230\u5e95\u8981\u7528\u670d\u52a1\u7aef\u4f1a\u8bdd\u8fd8\u662f\u4e0d\u7528\uff1f\u5982\u679c\u4f60\u9009\u62e9\u4e0d\u7528\uff0c\u90a3\u4f60\u8bf4\u7684\u7531\u670d\u52a1\u5668\u8fd4\u56de\u5386\u53f2\u6570\u636e\u4ece\u4f55\u8c08\u8d77\uff1f\u5982\u679c\u4f60\u9009\u62e9\u7528\u670d\u52a1\u7aef\u4f1a\u8bdd\uff0c\u90a3\u5c31\u6ca1\u5565\u8981\u8ba8\u8bba\u7684\u4e86\u3002<\/p>\n<p>\u5728\u7528\u6237\u505a\u9009\u62e9\u7684\u65f6\u5019\u4e00\u4e2a\u8bf7\u6c42\u53d1\u7ed9\u670d\u52a1\u7aef\uff0c\u544a\u8bc9\u670d\u52a1\u7aef\u5ba2\u6237\u9009\u4e86\u54ea\u4e2a\u89d2\u8272\u5f53\u4f5c\u81ea\u5df1\u7684\u5168\u5c40\u9ed8\u8ba4\u89d2\u8272\u4e0d\u5c31\u53ef\u4ee5\u4e86\uff0c\u670d\u52a1\u7aef\u628a\u8fd9\u79cd\u89d2\u8272\u4fdd\u5b58\u8d77\u6765\u5c31\u53ef\u4ee5\u4e86\uff0c\u800c\u4e14\u8fd9\u79cd\u6570\u636e\u4e5f\u4e0d\u5e94\u8be5\u4fdd\u5b58\u5728\u670d\u52a1\u7aef\u4f1a\u8bdd\u4e2d\uff0c\u8fd9\u5e94\u8be5\u4fdd\u5b58\u5728\u6570\u636e\u5e93\u4e2d\u5427\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698326\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u6211\u770b\u4e86\u4f60\u8bf4\u7684\u540e\u4e00\u79cd\u60c5\u51b5\uff0c\u6211\u611f\u89c9\u4f60\u662f\u6ca1\u7406\u89e3\u8fd9\u91cc\u8bf4\u7684\u65e0\u72b6\u6001\u662f\u4ec0\u4e48\u610f\u601d\u3002\u4f60\u540e\u9762\u8bb2\u7684\u8fd9\u79cd\u60c5\u51b5\u5c31\u662f OpaqueToken \u6216\u8005 sessionId \u7684\u7528\u6cd5\uff0c\u8fd9\u624d\u662f\u8fd9\u4e2a\u4e0a\u4e0b\u6587\u91cc\u9762\u8bf4\u7684\u6709\u72b6\u6001\u7684\u60c5\u51b5\u3002\u5982\u679c\u522b\u4eba\u53d1\u4e00\u4e2a\u7528\u6237\u6807\u8bc6\u6765\uff0c\u4f60\u4e3a\u4e86\u9a8c\u8bc1\u53c2\u6570\u662f\u5426\u5408\u6cd5\uff0c\u4e0d\u53ef\u907f\u514d\u7684\u8981\u548c\u6570\u636e\u5e93\u3001\u7f13\u5b58\u6216\u8005\u8ba4\u8bc1\u670d\u52a1\u5668\u4ea4\u4e92\u67e5\u8be2\u51fa\u6765\u7528\u6237\u4fe1\u606f\uff0c\u800c jwt \u5c31\u662f\u4e3a\u4e86\u51cf\u5c11\u8fd9\u90e8\u5206\u7684\u67e5\u8be2\u8bbe\u8ba1\u7684\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u7aef\u79bb\u7ebf\u9a8c\u8bc1\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u67e5\u8be2\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698327\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eason1874 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7406\u89e3\u7684\u65e0\u72b6\u6001\u662f\u6307\u201c\u670d\u52a1\u7aef\u7684\u67d0\u4e00\u5c42\u6216\u67d0\u4e00\u4e2a\u7ec4\u4ef6\uff0c\u4e0d\u4e13\u95e8\u4e3a\u8bbf\u95ee\u7528\u6237\u7ef4\u62a4\u4e00\u4efd\u4f1a\u8bdd\u6570\u636e\u201d\uff0c\u8fd9\u4e0d\u4ee3\u8868\u6574\u4e2a\u670d\u52a1\u7aef\u6ca1\u6709\u72b6\u6001\u3002<\/p>\n<p>\u4e00\u4e2a\u7ec4\u4ef6\u6709\u72b6\u6001\u662f\u600e\u4e48\u6837\u7684\uff1f\u6bd4\u5982 FTP\uff0c\u5f53\u4f60\u8fde\u63a5 FTP \u6253\u5f00\u4e00\u4e2a\u76ee\u5f55\uff0c\u4f60\u95ee FTP \u6211\u5728\u54ea\u513f\uff0cFTP \u4f1a\u7ed9\u4f60\u8fd4\u56de\u5f53\u524d\u76ee\u5f55\u3002\u8fd9\u5c31\u53eb\u6709\u72b6\u6001\uff0cFTP \u81ea\u5df1\u7ef4\u62a4\u4e86\u4f1a\u8bdd\u3002<\/p>\n<p>\u65e0\u72b6\u6001\u5462\uff1f HTTP \u662f\u65e0\u72b6\u6001\u7684\uff0c\u5f53\u4f60\u8fde\u63a5 HTTP \u6253\u5f00\u4e00\u4e2a\u76ee\u5f55\uff0c\u4f60\u95ee HTTP \u6211\u5728\u54ea\u513f\uff0cHTTP \u5e76\u4e0d\u77e5\u9053\uff0c\u56e0\u4e3a HTTP \u5904\u7406\u5b8c\u5c31\u7b97\u4e86\uff0c\u8fd9\u5c31\u53eb\u65e0\u72b6\u6001\u3002\u4f60\u544a\u8bc9 HTTP \u8981\u53bb\u54ea\u4e2a\u8def\u5f84\uff0cHTTP \u5c31\u5e26\u4f60\u53bb\uff0c\u4f46\u662f\u4e0d\u4f1a\u8bb0\u4e0b\u6765\uff0c\u6240\u4ee5\u4f60\u6bcf\u6b21\u90fd\u8981\u544a\u8bc9 HTTP \u53bb\u54ea\u513f\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u8fd9\u5e76\u4e0d\u4ee3\u8868\u7740\u901a\u8fc7 HTTP \u5b9e\u73b0\u7684\u4e1a\u52a1\u5c31\u4e0d\u80fd\u6709\u72b6\u6001\u4e86\u3002\u901a\u8fc7 IP \u3001HTTP Header \u3001Cookies \u7b49\u4fe1\u606f\uff0c\u4f60\u4e5f\u53ef\u4ee5\u6807\u8bb0\u552f\u4e00\u7528\u6237\uff0c\u5728\u5904\u7406 HTTP \u8bf7\u6c42\u7684\u65f6\u5019\u7ed9\u7528\u6237\u7ef4\u62a4\u4e00\u4efd\u4f1a\u8bdd\u6570\u636e\uff0c\u4f46\u8fd9\u5c31\u8ddf HTTP \u65e0\u72b6\u6001\u6ca1\u5173\u7cfb\u4e86\uff0c\u4f60\u4e0d\u80fd\u628a\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u5b9e\u73b0\u7684\u4f1a\u8bdd\u8bf4\u6210\u662f HTTP \u7684\u72b6\u6001\u3002<\/p>\n<p>\u6240\u4ee5\u8bf4\uff0c\u628a\u4f1a\u8bdd\u6570\u636e\u5b58\u5728\u5ba2\u6237\u7aef\u4e5f\u53ef\u4ee5\u662f\u65e0\u72b6\u6001\u3002\u800c\u4e14\u65e0\u72b6\u6001\u5fc5\u987b\u8981\u628a\u4f1a\u8bdd\u6570\u636e\u5b58\u5728\u5ba2\u6237\u7aef\uff0c\u8fd9\u6837\u624d\u80fd\u544a\u8bc9\u65e0\u72b6\u6001\u7684\u670d\u52a1\u7ec4\u4ef6\u6211\u662f\u8c01\u6211\u8981\u53bb\u54ea\u513f\u3002\u5982\u679c\u53ea\u5b58\u4e00\u4e2a\u8eab\u4efd\u6807\u8bc6\uff0c\u50cf\u4ee5\u524d\u7684 Session ID\uff0c\u5c31\u8981\u6c42\u670d\u52a1\u7ec4\u4ef6\u6709\u72b6\u6001\u4e86\uff0c\u5728\u591a\u670d\u52a1\u5668\u7684\u65f6\u5019\u5fc5\u987b\u540c\u6b65\u4f1a\u8bdd\u6570\u636e\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698328\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzwb \u5927\u5bb6\u516c\u8ba4\u7684 Authentication: Basic username:password \u8fd9\u79cd\u662f RESTful \u7684\uff0c\u8fd9\u79cd\u6ca1\u53bb\u6839\u636e\u7528\u6237\u540d\u548c\u5bc6\u7801\u67e5\u8be2\u4e48\uff1f\u4e3a\u4e86\u4e0d\u5728\u6bcf\u6b21\u8bf7\u6c42\u4e2d\u90fd\u4f20\u8f93\u8d26\u6237\u548c\u5bc6\u7801\uff0c\u6240\u4ee5\u53d1\u660e\u4e86\u4ee4\u724c\u4ee3\u66ff\u7528\u6237\u540d\u548c\u5bc6\u7801\u6765\u505a\u8ba4\u8bc1\uff0c\u6240\u4ee5\u6709\u5565\u95ee\u9898\uff1f<\/p>\n<p>\u4f60\u80fd\u8bd5\u7740\u5148\u628a\u4f1a\u8bdd\u90a3\u4e00\u5957\u4e1c\u897f\u5fd8\u6389\u4e48\uff0c\u8981\u4e0d\u7136\u5c31\u6ca1\u529e\u6cd5\u804a\u4e86\uff0c\u6bcf\u8bf4\u4e24\u4e09\u53e5\uff0c\u4f60\u7684\u601d\u8def\u5c31\u56de\u5230\u4f1a\u8bdd\u90a3\u8fb9\u53bb\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698329\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pinews <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u6211\u89c9\u5f97\u8fd9\u4e2a\u65e0\u72b6\u6001\u662f\u76f8\u5bf9\u7684\uff0c\u4e0d\u662f\u7edd\u5bf9\u7684\uff0c\u6ca1\u6709\u4e24\u6b21\u8bf7\u6c42\u662f\u5b8c\u5168\u76f8\u540c\u7684\uff0c\u9664\u975e\u7b26\u5408\u4f60\u7684\u9884\u671f\uff0c\u5373\u8fbe\u6210\u534f\u8bae\u7684\u65e0\u72b6\u6001\u6ee1\u8db3\u9700\u6c42\u3002<br \/>\u6bd4\u5982\u666e\u901a\u4eba\u5403\u996d\u611f\u53d7\u4e2a\u8272\u9999\u5473\u5c31\u5b8c\u4e86\uff0c\u7f8e\u98df\u5bb6\u5219\u8981\u611f\u53d7\u66f4\u591a\u7684\u4fe1\u606f\uff0c\u8001\u677f\u5219\u8981\u611f\u53d7\u80fd\u5426\u5e26\u6765\u76c8\u5229\uff0c\u4f60\u5c31\u5fc5\u987b\u7528\u5fc3\u53bb\u4f53\u9a8c\u3002<\/p>\n<p>\u539f\u6765\u7684 http \u534f\u8bae\u4e4b\u524d\uff0c\u90ae\u4ef6\uff0c\u7528\u6237\u7ec4\uff0cftp \u90fd\u662f\u5fc5\u987b\u8ba4\u8bc1\uff0c\u4e00\u6b65\u63a5\u4e00\u6b65\uff0c\u6700\u540e\u9000\u51fa\u8fd9\u6837\u7684\u6d41\u7a0b\uff0c<br \/>http \u4e5f\u652f\u6301\u957f\u8fde\u63a5\u548c\u57fa\u672c\u8ba4\u8bc1\uff0c\u73b0\u5728\u6ce8\u518c\u767b\u5f55\u5374\u6ca1\u6709\u4f7f\u7528\u90a3\u79cd\u5f62\u5f0f\uff0c\u53e6\u5916 http \u7684\u7e41\u7410\u4e5f\u51fa\u73b0\u4e86 WebSocket\uff0c\u90fd\u662f\u4e3a\u4e86\u6700\u5408\u9002\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<p>\u65b0\u540d\u8bcd\u7684\u786e\u4e0d\u4e00\u5b9a\u540d\u526f\u5176\u5b9e\uff0c\u4e3a\u4e86\u63a8\u9500\u81ea\u5df1\u4f7f\u52b2\u5439\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698330\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u611f\u89c9\u4f60\u53ef\u80fd\u6ca1\u6709\u5b9e\u8df5\u8fc7\u4efb\u4f55\u4e00\u79cd\u8ba4\u8bc1\u65b9\u5f0f\u3002\u4f60\u8bf4\u7684\u7528\u6cd5\u624d\u662f\u5178\u578b\u7684\u6709\u72b6\u6001\uff0c\u4f9d\u8d56\u4e8e\u7528\u6237\u6807\u8bc6\u67e5\u8be2\u7528\u6237\u7136\u540e\u9a8c\u8bc1\u53c2\u6570(\u9664\u975e\u4f60\u9009\u62e9\u4e0d\u9a8c\u8bc1\uff0c\u5426\u5219\u5fc5\u987b\u5f97\u67e5\u8be2)\u3002jwt \u662f\u4e3a\u4e86\u8d44\u6e90\u670d\u52a1\u5668\u80fd\u5728\u672c\u5730\u79bb\u7ebf\u9a8c\u8bc1\u7528\u6237\u8bbe\u8ba1\u7684\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u4fdd\u5b58\u6216\u8005\u540c\u6b65\u4f1a\u8bdd\u7684\u64cd\u4f5c\uff0c\u53ea\u9700\u8981\u89e3\u6790 jwt \u5c31\u80fd\u83b7\u53d6\u5230\u7528\u6237\u4fe1\u606f\uff0c\u8fd9\u79cd\u670d\u52a1\u5668\u624d\u53ef\u4ee5\u968f\u65f6\u4e14\u72ec\u7acb\u7684\u4f38\u7f29\uff0c\u4f60\u8bf4\u7684\u90a3\u79cd\u60c5\u51b5\u968f\u7740\u8d44\u6e90\u670d\u52a1\u5668\u7684\u4f38\u7f29\uff0c\u6570\u636e\u5e93\u3001\u7f13\u5b58\u6216\u8005\u8ba4\u8bc1\u670d\u52a1\u5668\u90fd\u9700\u8981\u540c\u6b65\u4f38\u7f29\uff0c\u5426\u5219\u5c31\u4f1a\u9047\u5230\u5355\u70b9\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698331\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzwb \u4f60\u8bf4\u7684\u4e0d\u662f\u5c31\u4f1a\u8bdd\u4e48\uff0c\u800c\u4e14\u662f\u5c31\u662f\u5ba2\u6237\u7aef\u4f1a\u8bdd\uff0c\u53ea\u4e0d\u8fc7\u501f\u52a9 JWT \u5b9e\u73b0\u4e86\uff0c\u6240\u4ee5\u6211\u624d\u8bf4\u4f60\u4e00\u76f4\u6ca1\u79bb\u5f00\u4f1a\u8bdd\uff0c\u800c\u6211\u60f3\u8ba8\u8bba\u7684\u5c31\u662f\u5b8c\u5168\u79bb\u5f00\u4f1a\u8bdd\uff0c\u5305\u62ec\u670d\u52a1\u7aef\u4f1a\u8bdd\u548c\u5ba2\u6237\u7aef\u4f1a\u8bdd\u3002\u6211\u8fd9\u79cd JWT\uff0c\u5c31\u662f\u505a\u8ba4\u8bc1\u7528\u6237\u7684\uff0c\u591a\u4f59\u7684\u4ec0\u4e48\u90fd\u6ca1\u6709\uff0c\u670d\u52a1\u7aef\u4e5f\u4e0d\u4fdd\u5b58\uff0c\u4ea4\u4e92\u72b6\u6001\u6211\u4e5f\u8ba4\u4e3a\u5e94\u8be5\u548c JWT \u4e00\u6837\uff0c\u90fd\u5b58\u5728\u5ba2\u6237\u7aef\uff0c\u670d\u52a1\u7aef\u4ec0\u4e48\u90fd\u6ca1\u6709\uff0c\u6839\u672c\u5c31\u4e0d\u5b58\u5728\u4e2d\u5fc3\u5316\u7684\u95ee\u9898\uff0c\u54ea\u91cc\u6765\u7684\u5355\u70b9\u548c\u6c34\u5e73\u6269\u5c55\u95ee\u9898\u3002<\/p>\n<p>\u7b97\u4e86\u7b97\u4e86\uff0c\u6ca1\u5565\u597d\u8ba8\u8bba\u7684\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698332\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u201c\u5927\u5bb6\u516c\u8ba4\u7684 Authentication: Basic username:password \u8fd9\u79cd\u662f RESTful \u7684\u201d<br \/>=========<\/p>\n<p>\u800c\u4e14\u4f60\u80fd\u8bb2\u51fa\u6765\u8fd9\u79cd\u8bdd\u6211\u4e5f\u4e0d\u77e5\u9053\u8bf4\u4ec0\u4e48\u597d\u4e86\u3002\u8bf7\u4f60\u770b\u4e00\u4e0b\u4f60\u53d1\u51fa\u6765\u539f\u6587\u597d\u5417&#8221;and cannot take advantage of any stored context on the server.&#8221; \u4f60\u662f\u4e0d\u662f\u4e0d\u7406\u89e3\u4ec0\u4e48\u53eb any stored context on the server.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698333\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u4f60\u8bf4\u7684\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u53ef\u907f\u514d\u7684\u8981\u7528\u5230\u201dany stored context on the server\u201c\uff0c\u5426\u5219\u600e\u4e48\u9a8c\u8bc1\u7528\u6237\u7684\u53c2\u6570\u662f\u5426\u5408\u6cd5\uff0c\u4ed6\u53d1\u8fc7\u6765\u4e00\u4e2a\u7ba1\u7406\u5458\u89d2\u8272\uff0c\u4f60\u8fd9\u79cd\u65b9\u5f0f\u80fd\u5728\u201dcannot take advantage of any stored context on the server\u201c\u7684\u60c5\u51b5\u4e0b\u9a8c\u8bc1\u4ed6\u662f\u4e0d\u662f\u7ba1\u7406\u5458\u5417\uff0c\u4f46\u662f Jwt \u53ef\u4ee5\u505a\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698334\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzwb \u8fd9\u662f\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u8bf7\u6c42\u5934\u90e8\u554a\uff0c\u8fd9\u6709\u670d\u52a1\u7aef\u4ec0\u4e48\u4e8b\u4e48\uff1f\u4f60\u771f\u7684\u77e5\u9053\u8fd9\u4e2a\u662f\u4ec0\u4e48\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698335\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzwb \u670d\u52a1\u7aef\u5b58\u7684\u662f\u8d44\u6e90\u548c\u8d44\u6e90\u7684\u72b6\u6001\uff0c\u4f60\u5374\u5728\u7ea0\u7ed3\u670d\u52a1\u7aef\u6570\u636e\u5e93\u91cc\u9762\u6709\u4fdd\u5b58\u6570\u636e\uff0c\u5c31\u662f\u4e2d\u5fc3\u5316\uff0c\u5c31\u662f\u6709\u72b6\u6001\u3002\u54ea\u4e2a\u4eba\u6562\u7ad9\u51fa\u6765\u8bf4\u65e0\u72b6\u6001\u5c31\u662f\u4e0d\u80fd\u5728\u6570\u636e\u5e93\u91cc\u9762\u5b58\u6570\u636e\uff1f\u4f60\u8fd9\u662f\u5f00\u59cb\u626f\u76ae\u4e86\uff1f\uff1f\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698336\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ZSeptember <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8bf4\u5176\u4ed6\uff0c\u5c31\u8bf4 JWT \u65e0\u72b6\u6001\uff0c\u5c31\u662f\u8bf4\u670d\u52a1\u5668\u4e0d\u9700\u8981\u4ece\u5176\u4ed6\u4efb\u4f55\u4e2d\u5fc3\u5316\u7684\u5b58\u50a8\u4e2d\u53bb\u53d6\u6570\u636e\u5c31\u80fd\u6821\u9a8c token \u7684\u8eab\u4efd\u3002\u3002\u53ea\u8981 token \u5c31\u80fd\u6821\u9a8c\uff0c\u6240\u4ee5\u624d\u6709\u6211\u8bf4\u7684\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698337\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u7b97\u4e86\u7b97\u4e86\uff0c\u4e0d\u8bf4\u4e86\u3002\u5982\u679c\u4f60\u80fd\u660e\u767d Basic username:password = OpaqueToken = sessionId = \u7b49\u4e8e\u4f60\u8bf4\u7684 jwt \u91cc\u5b58\u7528\u6237 id\uff0c\u90fd\u662f\u4e00\u79cd\u7528\u6237\u6807\u8bc6\uff0c\u90fd\u9700\u8981\u518d\u6b21\u67e5\u8be2\u624d\u80fd\u83b7\u53d6\u7528\u6237\u4fe1\u606f\uff0c\u4f60\u5c31\u77e5\u9053\u4f60\u8fd9\u79cd\u65b9\u6848\u53ea\u662f\u91cd\u65b0\u53d1\u660e\u4e86\u4e00\u904d\u670d\u52a1\u7aef\u4f1a\u8bdd\uff0c\u672c\u8d28\u4e0a\u662f\u4e00\u79cd\u4e1c\u897f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4698338\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ZSeptember \u4eca\u5929\u56de\u7b54\u7684\u95ee\u9898\u592a\u591a\uff0c\u7b97\u4e86\uff0c\u5c31\u8fd9\u6837\u5427\uff0c\u6ca1\u5fc5\u8981\u518d\u8ba8\u8bba\u4e86\uff0c\u6050\u6015\u4e5f\u8ba8\u8bba\u4e0d\u51fa\u7ed9\u6240\u4ee5\u7136\u6765\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8e REST \u4e2d\u7684\u201c\u65e0\u72b6\u6001\u201d\u7684\u4e00&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\/229032"}],"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=229032"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/229032\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=229032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=229032"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=229032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}