{"id":222,"date":"2022-03-30T09:48:04","date_gmt":"2022-03-30T01:48:04","guid":{"rendered":"https:\/\/blog.lijiajia.top\/?p=222"},"modified":"2026-06-19T21:29:17","modified_gmt":"2026-06-19T13:29:17","slug":"springsecurity%e6%a1%86%e6%9e%b6%e5%ad%a6%e4%b9%a0%ef%bc%9a%e5%92%8cshiro%e6%af%94%e8%be%83%e4%ba%8c","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=222","title":{"rendered":"SpringSecurity\u6846\u67b6\u5b66\u4e60\uff1a\u548cshiro\u6bd4\u8f83(\u4e8c)"},"content":{"rendered":"<h2>SpringSecurity\u7279\u70b9:<\/h2>\n<ul>\n<li>\u548cSpring\u65e0\u7f1d\u6574\u5408<\/li>\n<li>\u5168\u9762\u7684\u6743\u9650\u63a7\u5236<\/li>\n<li>\u4e13\u95e8\u4e3aweb\u5f00\u53d1\u4e8c\u8bbe\u8ba1<br \/>\n\u65e7\u7248\u672c\u4e0d\u80fd\u8131\u79bbweb\u73af\u5883\u4f7f\u7528<br \/>\n\u65b0\u7248\u672c\u5bf9\u6574\u4e2a\u6846\u67b6\u8fdb\u884c\u4e86\u5206\u5c42\u62bd\u53d6\uff0c\u5206\u6210\u4e86\u6838\u5fc3\u6a21\u5757\u548cWeb\u6a21\u5757\u3002\u5355\u72ec\u5f15\u5165\u6838\u5fc3\u6a21\u5757\u5c31\u53ef\u4ee5\u8131\u79bbWeb\u73af\u5883<\/li>\n<li>\u91cd\u91cf\u7ea7<\/li>\n<\/ul>\n<h2>Shiro<\/h2>\n<ul>\n<li>Apache\u65d7\u4e0b\u7684\u8f7b\u91cf\u7ea7\u6743\u9650\u63a7\u5236\u6846\u67b6\u3001<br \/>\n<h3>\u7279\u70b9<\/h3>\n<\/li>\n<li>\u8f7b\u91cf\u7ea7\u3002Shiro\u4e3b\u5f20\u7684\u7406\u5ff5\u662f\u628a\u590d\u6742\u7684\u4e8b\u60c5\u53d8\u7b80\u5355\u3002\u9488\u5bf9\u5bf9\u6027\u80fd\u6709\u66f4\u9ad8\u8981\u6c42\u7684\u4e92\u8054\u7f51\u5e94\u7528\u6709\u66f4\u597d\u8868\u73b0<br \/>\n<h3>\u901a\u7528\u6027<\/h3>\n<\/li>\n<li>\u597d\u5904\uff1a\u4e0d\u5c40\u9650\u4e8eWeb\u73af\u5883\uff0c\u53ef\u7528\u8131\u79bbWeb\u73af\u5883\u4f7f\u7528\u3002<\/li>\n<li>\u7f3a\u9677\uff1a\u5728Web\u73af\u5883\u4e0b\u4e00\u4e9b\u7279\u5b9a\u7684\u9700\u6c42\u9700\u8981\u624b\u52a8\u7f16\u5199\u4ee3\u7801\u5b9a\u5236<\/li>\n<\/ul>\n<p>Spring Security \u662f Spring \u5bb6\u65cf\u4e2d\u7684\u4e00\u4e2a\u5b89\u5168\u7ba1\u7406\u6846\u67b6\uff0c\u5b9e\u9645\u4e0a\uff0c\u5728 Spring Boot \u51fa\u73b0\u4e4b<br \/>\n\u524d\uff0cSpring Security \u5c31\u5df2\u7ecf\u53d1\u5c55\u4e86\u591a\u5e74\u4e86\uff0c\u4f46\u662f\u4f7f\u7528\u7684\u5e76\u4e0d\u591a\uff0c\u5b89\u5168\u7ba1\u7406\u8fd9\u4e2a\u9886\u57df\uff0c\u4e00\u76f4\u662fShiro\u7684\u5929\u4e0b\u3002<\/p>\n<\/p>\n<p>\u76f8\u5bf9\u4e8e Shiro\uff0c\u5728 SSM \u4e2d\u6574\u5408 Spring Security \u90fd\u662f\u6bd4\u8f83\u9ebb\u70e6\u7684\u64cd\u4f5c\uff0c\u6240\u4ee5\uff0cSpringSecurity \u867d\u7136\u529f\u80fd\u6bd4 Shiro \u5f3a\u5927\uff0c\u4f46\u662f\u4f7f\u7528\u53cd\u800c\u6ca1\u6709Shiro\u591a\uff08Shiro \u867d\u7136\u529f\u80fd\u6ca1\u6709Spring Security \u591a\uff0c\u4f46\u662f\u5bf9\u4e8e\u5927\u90e8\u5206\u9879\u76ee\u800c\u8a00\uff0cShiro \u4e5f\u591f\u7528\u4e86 ) \u3002<br \/>\n\u81ea\u4ece\u6709\u4e86 Spring Boot \u4e4b\u540e\uff0cSpring Boot \u5bf9\u4e8eSpring Security \u63d0\u4f9b\u4e86\u81ea\u52a8\u5316\u914d\u7f6e\u65b9\u6848\uff0c\u53ef\u4ee5\u4f7f\u7528\u66f4\u5c11\u7684\u914d\u7f6e\u6765\u4f7f\u7528 Spring Security\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u4e00\u822c\u6765\u8bf4\uff0c\u5e38\u89c1\u7684\u5b89\u5168\u7ba1\u7406\u6280\u672f\u6808\u7684\u7ec4\u5408\u662f\u8fd9\u6837\u7684\uff1a<br \/>\nSSM + Shiro<br \/>\nSpring Boot\/Spring Cloud + Spring Security<br \/>\n\u4ee5\u4e0a\u53ea\u662f\u4e00\u4e2a\u63a8\u8350\u7684\u7ec4\u5408\u800c\u5df2\uff0c\u5982\u679c\u5355\u7eaf\u4ece\u6280\u672f\u4e0a\u6765\u8bf4\uff0c\u65e0\u8bba\u600e\u4e48\u7ec4\u5408\uff0c\u90fd\u662f\u53ef\u4ee5\u8fd0\u884c<br \/>\n\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SpringSecurity\u7279\u70b9: \u548cSpring\u65e0\u7f1d\u6574\u5408 \u5168\u9762\u7684\u6743\u9650\u63a7\u5236 \u4e13\u95e8\u4e3aweb\u5f00\u53d1\u4e8c\u8bbe\u8ba1 \u65e7\u7248\u672c\u4e0d\u80fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125],"tags":[72],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-java-backend","tag-springsecurity"],"_links":{"self":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":1,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":2093,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions\/2093"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}