{"id":35140,"date":"2024-11-26T15:05:05","date_gmt":"2024-11-26T07:05:05","guid":{"rendered":"https:\/\/fwq.ai\/blog\/35140\/"},"modified":"2024-11-26T15:05:05","modified_gmt":"2024-11-26T07:05:05","slug":"springboot-github-%e6%8e%88%e6%9d%83%e7%99%bb%e5%bd%95%e8%8e%b7%e5%8f%96%e4%b8%8d%e5%88%b0%e8%b4%a6%e5%8f%b7%e4%bf%a1%e6%81%af%ef%bc%9a%e5%a6%82%e4%bd%95%e6%ad%a3%e7%a1%ae%e4%bc%a0%e9%80%92-access_tok","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/35140\/","title":{"rendered":"SpringBoot GitHub \u6388\u6743\u767b\u5f55\u83b7\u53d6\u4e0d\u5230\u8d26\u53f7\u4fe1\u606f\uff1a\u5982\u4f55\u6b63\u786e\u4f20\u9012 access_token\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173062260513394.jpg\" class=\"aligncenter\" title=\"SpringBoot GitHub \u6388\u6743\u767b\u5f55\u83b7\u53d6\u4e0d\u5230\u8d26\u53f7\u4fe1\u606f\uff1a\u5982\u4f55\u6b63\u786e\u4f20\u9012 access_token\uff1f\u63d2\u56fe\" alt=\"SpringBoot GitHub \u6388\u6743\u767b\u5f55\u83b7\u53d6\u4e0d\u5230\u8d26\u53f7\u4fe1\u606f\uff1a\u5982\u4f55\u6b63\u786e\u4f20\u9012 access_token\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>java\u5f00\u53d1bug\u6392\u67e5\uff1ahub\u6388\u6743\u767b\u5f55\u65e0\u6cd5\u83b7\u53d6\u8d26\u53f7\u4fe1\u606f<\/strong><\/p>\n<p>\u5728\u4f7f\u7528springboot\u5b9e\u73b0\u8bba\u575b\u9879\u76ee\u65f6\uff0c\u5f00\u53d1\u4eba\u5458\u5728\u7b2c\u4e09\u65b9\u767b\u5f55\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86github\u6388\u6743\u65e0\u6cd5\u83b7\u53d6\u6388\u6743\u8d26\u53f7\u4fe1\u606f\u7684\u95ee\u9898\u3002\u8be5\u5f00\u53d1\u8005\u5df2\u7ecf\u83b7\u5f97\u4e86_token\uff0c\u4f46\u5c1d\u8bd5\u901a\u8fc7\u5411\u4ee5\u4e0b\u94fe\u63a5\u53d1\u9001\u8bf7\u6c42\u6765\u83b7\u53d6github\u8d26\u53f7\u4fe1\u606f\u65f6\u5374\u5931\u8d25\u4e86\uff1a<\/p>\n<pre>\"https:\/\/api.github.com\/user?access_token=\" + accesstoken<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8be5\u95ee\u9898\u53ef\u80fd\u662f\u7531\u4e8eaccess_token\u4f20\u8f93\u65b9\u5f0f\u4e0d\u6b63\u786e\u5bfc\u81f4\u7684\u3002\u8bf7\u4f7f\u7528authorization http\u5934\u5c06access_token\u4f5c\u4e3a\u53c2\u6570\u4f20\u8f93\uff0c\u800c\u4e0d\u662f\u5c06\u5176\u4f5c\u4e3aurl\u4e2d\u7684\u53c2\u6570\u8fdb\u884c\u660e\u6587\u4f20\u8f93\u3002<\/p>\n<p>\u4fee\u6b63\u65b9\u6cd5\uff1a<\/p>\n<ol>\n<li>\u5411authorization http\u5934\u6dfb\u52a0\u4ee5\u4e0b\u6761\u76ee\uff1a<\/li>\n<\/ol>\n<pre>Authorization: Bearer {your_access_token}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u5176\u4e2d{your_access_token}\u5e94\u66ff\u6362\u4e3a\u60a8\u7684\u771f\u5b9eaccess_token\u3002<\/li>\n<\/ol>\n<p>\u8bf7\u53c2\u9605\u4ee5\u4e0b\u94fe\u63a5\u4e86\u89e3\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n<p>[springboot\u4e2d\u4f7f\u7528github\u8fdb\u884coauth2.0\u8ba4\u8bc1](https:\/\/blog.csdn.net\/kuleky\/article\/details\/104217757)<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fSpringBoot GitHub \u6388\u6743\u767b\u5f55\u83b7\u53d6\u4e0d\u5230\u8d26\u53f7\u4fe1\u606f\uff1a\u5982\u4f55\u6b63\u786e\u4f20\u9012 _token\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>java\u5f00\u53d1bug\u6392\u67e5\uff1ahub\u6388\u6743\u767b\u5f55\u65e0\u6cd5\u83b7\u53d6\u8d26\u53f7\u4fe1\u606f \u5728\u4f7f\u7528springboot\u5b9e\u73b0\u8bba\u575b\u9879\u76ee\u65f6\uff0c\u5f00\u53d1\u4eba\u5458\u5728\u7b2c\u4e09\u65b9\u767b\u5f55\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86github\u6388\u6743\u65e0\u6cd5\u83b7\u53d6\u6388\u6743\u8d26\u53f7\u4fe1\u606f\u7684\u95ee\u9898\u3002\u8be5\u5f00\u53d1\u8005\u5df2\u7ecf\u83b7\u5f97\u4e86_token\uff0c\u4f46\u5c1d\u8bd5\u901a\u8fc7\u5411\u4ee5\u4e0b\u94fe\u63a5\u53d1\u9001\u8bf7\u6c42\u6765\u83b7\u53d6github\u8d26\u53f7\u4fe1\u606f\u65f6\u5374\u5931\u8d25\u4e86\uff1a &#8220;https:\/\/api.github.com\/user?access_token=&#8221; + accesstoken \u767b\u5f55\u540e\u590d\u5236 \u8be5\u95ee\u9898\u53ef\u80fd\u662f\u7531\u4e8eaccess_token\u4f20\u8f93\u65b9\u5f0f\u4e0d\u6b63\u786e\u5bfc\u81f4\u7684\u3002\u8bf7\u4f7f\u7528authorization http\u5934\u5c06access_token\u4f5c\u4e3a\u53c2\u6570\u4f20\u8f93\uff0c\u800c\u4e0d\u662f\u5c06\u5176\u4f5c\u4e3aurl\u4e2d\u7684\u53c2\u6570\u8fdb\u884c\u660e\u6587\u4f20\u8f93\u3002 \u4fee\u6b63\u65b9\u6cd5\uff1a \u5411authorization http\u5934\u6dfb\u52a0\u4ee5\u4e0b\u6761\u76ee\uff1a Authorization: Bearer {your_access_token} \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d{your_access_token}\u5e94\u66ff\u6362\u4e3a\u60a8\u7684\u771f\u5b9eaccess_token\u3002 \u8bf7\u53c2\u9605\u4ee5\u4e0b\u94fe\u63a5\u4e86\u89e3\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\uff1a [springboot\u4e2d\u4f7f\u7528github\u8fdb\u884coauth2.0\u8ba4\u8bc1](https:\/\/blog.csdn.net\/kuleky\/article\/details\/104217757) \u4ee5\u4e0a\u5c31\u662fSpringBoot GitHub \u6388\u6743\u767b\u5f55\u83b7\u53d6\u4e0d\u5230\u8d26\u53f7\u4fe1\u606f\uff1a\u5982\u4f55\u6b63\u786e\u4f20\u9012 _token\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-35140","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/35140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=35140"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/35140\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=35140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=35140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=35140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}