{"id":166921,"date":"2020-10-03T13:19:08","date_gmt":"2020-10-03T05:19:08","guid":{"rendered":"http:\/\/4563.org\/?p=166921"},"modified":"2020-10-03T13:19:08","modified_gmt":"2020-10-03T05:19:08","slug":"springbootgraphql-%e7%9a%84%e9%a1%b9%e7%9b%ae%ef%bc%8c%e5%a6%82%e4%bd%95%e6%95%b4%e5%90%88-jwt-%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=166921","title":{"rendered":"springboot+graphql \u7684\u9879\u76ee\uff0c\u5982\u4f55\u6574\u5408 jwt \u4f7f\u7528"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  springboot+graphql \u7684\u9879\u76ee\uff0c\u5982\u4f55\u6574\u5408 jwt \u4f7f\u7528               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiobanma <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff0c\u6700\u8fd1\u505a\u4e00\u4e2a springboot \u6574\u5408 graphql \u7684\u9879\u76ee\u3002\u73b0\u5728\u7684\u67e5\u8be2\u6d41\u7a0b\u662f\uff0c\u53d1\u8d77\u8bf7\u6c42\uff0cgraphql \u7684\u670d\u52a1\u4f1a\u81ea\u5df1\u5bf9\u8bf7\u6c42\u8fdb\u884c\u62e6\u622a \u7136\u540e\u76f4\u63a5\u8fdb\u5165\u5230 dataFecher \u4e2d\u8fdb\u884c\u6570\u636e\u5904\u7406\uff0c\u800c\u8fd9\u62e6\u622a\u8bf7\u6c42\u8fd9\u90e8\u5206\u5e76\u4e0d\u662f\u6211\u81ea\u5df1\u53bb\u5199\u7684\uff0c\u90fd\u662f jar \u5305\u91cc graphql \u7684\u670d\u52a1\u505a\u7684\u3002\u4e5f\u5c31\u5bfc\u81f4\u4e86\u8fd9\u4e2a\u9879\u76ee\u5e76\u6ca1\u6709\u50cf restful \u4e00\u6837\u6240\u8c13\u7684 controller \u5c42\uff0c\u53ef\u4ee5\u505a\u4e9b\u62e6\u622a\u8bf7\u6c42\u7684\u64cd\u4f5c\u3002 \u50cf\u4e4b\u524d retsful \u7684\u670d\u52a1\uff0c\u53d1\u8d77\u4e00\u4e2a\u8bf7\u6c42\u662f\u4f1a\u643a\u5e26 token \u7684\uff0c\u62e6\u622a\u5230\u8bf7\u6c42\u540e\u89e3\u6790 token \u4fe1\u606f\u5f53\u505a\u6761\u4ef6\u4f7f\u7528\u3002\u4f46\u662f\u56e0\u4e3a\u4e0a\u8ff0\u539f\u56e0\uff0c\u4e0d\u77e5\u9053\u6362\u6210 graphql \u670d\u52a1\u540e\u8be5\u5982\u4f55\u5904\u7406 token \u90e8\u5206\u7684\u4e1c\u897f\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>1<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3681998\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jaylee4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u628a Google \u641c\u51fa\u6765\u7684\u524d\u4e09\u4e2a\u94fe\u63a5\u653e\u4e0b\u9762\uff0c\u4e0b\u6b21\u4f60\u81ea\u5df1\u641c\uff0c\u81ea\u5907\u5de5\u5177\uff1a<br \/>https:\/\/github.com\/Blacktoviche\/springboot-graphql-sqqr-jwt-demo<br \/>https:\/\/dimitr.im\/graphql-spring-security<br \/>https:\/\/medium.com\/@shitalkumarchivate\/securing-graphql-api-with-spring-security-8c232de2804d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>springboot+graphq&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\/166921"}],"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=166921"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/166921\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166921"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}