{"id":224,"date":"2022-03-30T10:07:09","date_gmt":"2022-03-30T02:07:09","guid":{"rendered":"https:\/\/blog.lijiajia.top\/?p=224"},"modified":"2026-06-19T21:29:37","modified_gmt":"2026-06-19T13:29:37","slug":"springsecurity%e6%a1%86%e6%9e%b6%e5%ad%a6%e4%b9%a0%ef%bc%9a%e5%9f%ba%e6%9c%ac%e5%8e%9f%e7%90%86%e5%9b%9b","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=224","title":{"rendered":"SpringSecurity\u6846\u67b6\u5b66\u4e60\uff1a\u57fa\u672c\u539f\u7406(\u56db)"},"content":{"rendered":"<h2>SpringSecurity \u672c\u8d28\u662f\u4e00\u4e2a<strong>\u8fc7\u6ee4\u5668<\/strong>\u94fe\uff1a<\/h2>\n<p>\u4ece\u542f\u52a8\u662f\u53ef\u4ee5\u83b7\u53d6\u5230\u8fc7\u6ee4\u5668\u94fe\uff1a<\/p>\n<\/p>\n<pre><code class=\"language-java\">org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter\norg.springframework.security.web.context.SecurityContextPersistenceFilter\norg.springframework.security.web.header.HeaderWriterFilter\norg.springframework.security.web.csrf.CsrfFilter\norg.springframework.security.web.authentication.logout.LogoutFilter\norg.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter\norg.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter\norg.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter\norg.springframework.security.web.savedrequest.RequestCacheAwareFilter\norg.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter\norg.springframework.security.web.authentication.AnonymousAuthenticationFilter\norg.springframework.security.web.session.SessionManagementFilter\norg.springframework.security.web.access.ExceptionTranslationFilter\norg.springframework.security.web.access.intercept.FilterSecurityInterceptor<\/code><\/pre>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/bucket-blog-img.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2022\/03\/image-1648606885830.png'><img class=\"lazyload lazyload-style-11\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/bucket-blog-img.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2022\/03\/image-1648606885830.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"file\" \/><\/div><\/p>\n<p>\u4ee3\u7801\u5e95\u5c42\u6d41\u7a0b\uff1a\u91cd\u70b9\u770b\u4e09\u4e2a\u8fc7\u6ee4\u5668\uff1a<br \/>\nFilterSecurityInterceptor\uff1a\u662f\u4e00\u4e2a\u65b9\u6cd5\u7ea7\u7684\u6743\u9650\u8fc7\u6ee4\u5668, \u57fa\u672c\u4f4d\u4e8e\u8fc7\u6ee4\u94fe\u7684\u6700\u5e95\u90e8\u3002<\/p>\n<p>ExceptionTranslationFilter\uff1a\u662f\u4e2a\u5f02\u5e38\u8fc7\u6ee4\u5668\uff0c\u7528\u6765\u5904\u7406\u5728\u8ba4\u8bc1\u8fc7\u7a0b\u4e2d\u629b\u51fa\u7684\u5f02\u5e38<\/p>\n<p>UsernamePasswordAuthenticationFilter\uff1a\u5bf9\/login\u7684POST\u8bf7\u6c42\u505a\u62e6\u622a\uff0c\u6821\u9a8c\u8868\u5355\u4e2d\u7528\u6237\u540d\uff0c\u5bc6\u7801\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SpringSecurity \u672c\u8d28\u662f\u4e00\u4e2a\u8fc7\u6ee4\u5668\u94fe\uff1a \u4ece\u542f\u52a8\u662f\u53ef\u4ee5\u83b7\u53d6\u5230\u8fc7\u6ee4\u5668\u94fe\uff1a org.springfram [&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-224","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\/224","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=224"}],"version-history":[{"count":1,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":2095,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions\/2095"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}