{"id":39683,"date":"2023-05-02T20:54:36","date_gmt":"2023-03-11T19:36:56","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/"},"modified":"2024-04-30T02:20:07","modified_gmt":"2024-04-29T18:20:07","slug":"%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/","title":{"rendered":"\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS"},"content":{"rendered":"<p>\u6211\u6b63\u5728\u4f7f\u7528Springboot\u5236\u4f5cWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u78b0\u5230\u4e86\u6807\u9898\u4e2d\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u5199\u4e0b\u4e86\u8fd9\u4e2a\u5907\u5fd8\u5f55\u3002\u5982\u679c\u6709\u4efb\u4f55\u9519\u8bef\uff0c\u8bf7\u6307\u6b63\u3002<\/p>\n<h3>\u4f7f\u7528\u5de5\u5177<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Docker 23.0.4<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">windows11(wsl2)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Spring Boot3.1.0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">pom.xml\u306e\u4f9d\u5b58\u95a2\u4fc2<\/ul>\n<pre class=\"post-pre\"><code>\t<span class=\"nt\">&lt;dependencies&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-starter-data-jdbc<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-starter-security<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-starter-thymeleaf<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-starter-web<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.thymeleaf.extras<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>thymeleaf-extras-springsecurity6<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-devtools<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;scope&gt;<\/span>runtime<span class=\"nt\">&lt;\/scope&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;optional&gt;<\/span>true<span class=\"nt\">&lt;\/optional&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>com.mysql<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>mysql-connector-j<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;scope&gt;<\/span>runtime<span class=\"nt\">&lt;\/scope&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.projectlombok<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>lombok<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;optional&gt;<\/span>true<span class=\"nt\">&lt;\/optional&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-starter-test<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;scope&gt;<\/span>test<span class=\"nt\">&lt;\/scope&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.security<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>spring-security-test<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;scope&gt;<\/span>test<span class=\"nt\">&lt;\/scope&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"c\">&lt;!-- https:\/\/mvnrepository.com\/artifact\/org.springframework.boot\/spring-boot-starter-validation --&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-starter-validation<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;version&gt;<\/span>3.1.0<span class=\"nt\">&lt;\/version&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t\t<span class=\"c\">&lt;!-- https:\/\/mvnrepository.com\/artifact\/org.webjars\/bootstrap --&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;dependency&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;groupId&gt;<\/span>org.webjars<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;artifactId&gt;<\/span>bootstrap<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n\t\t\t<span class=\"nt\">&lt;version&gt;<\/span>5.3.0<span class=\"nt\">&lt;\/version&gt;<\/span>\r\n\t\t<span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n\t<span class=\"nt\">&lt;\/dependencies&gt;<\/span>\r\n<\/code><\/pre>\n<h3>\u60f3\u505a\u7684\u4e8b\u60c5<\/h3>\n<ul class=\"post-ul\">BootStrap\u306eCSS\u3092\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u9069\u7528\u3059\u308b<\/ul>\n<h3>\u8fdb\u884c\u6b65\u9aa4<\/h3>\n<ul class=\"post-ul\">\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9<\/ul>\n<h3>\u73b0\u8c61<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306bBootStrap\u306eCSS\u304c\u9069\u7528\u3055\u308c\u306a\u3044<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u958b\u767a\u8005\u30c4\u30fc\u30eb(google chrome)\u306e\u30b3\u30f3\u30bd\u30fc\u30eb<\/ul>\n<pre class=\"post-pre\"><code>Refused to execute script from 'http:\/\/localhost:18080\/login' because its MIME type ('text\/html') is not executable, and strict MIME type checking is enabled.\r\n<\/code><\/pre>\n<h3>\u5f15\u8d77\u7684\u6210 \u5f52\u56e0\u4e8e\u7684\u539f\u56e0\u662f \u9020\u6210\u7684\u539f\u56e0 \u662f\u5bfc\u81f4\u7684\u539f\u56e0\u662f\u7684\u539f\u56e0 \u662f\u7531\u4e8e<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">SecurityConfig\u306erequestMatchers()\u3067\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>SecurityConfig.java<br \/>\n\/\/ \u7565<br \/>\n@Configuration<br \/>\n@EnableWebSecurity<br \/>\n@EnableMethodSecurity<br \/>\npublic class SecutiryConfig {<br \/>\n@Bean<br \/>\npublic SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {<br \/>\nhttp.formLogin(login -&gt; login<br \/>\n.loginProcessingUrl(&#8220;\/sign_in&#8221;)<br \/>\n.loginPage(&#8220;\/login&#8221;)<br \/>\n.defaultSuccessUrl(&#8220;\/book\/menu&#8221;)<br \/>\n.usernameParameter(&#8220;userId&#8221;)<br \/>\n.passwordParameter(&#8220;password&#8221;)<br \/>\n.failureUrl(&#8220;\/login?error&#8221;)<br \/>\n.permitAll()<br \/>\n).logout(logout -&gt; logout<br \/>\n.logoutSuccessUrl(&#8220;\/login&#8221;)<br \/>\n).authorizeHttpRequests(authz -&gt; authz<br \/>\n.requestMatchers(&#8220;\/css\/**&#8221;).permitAll()<br \/>\n.requestMatchers(&#8220;\/login&#8221;).permitAll()<br \/>\n.anyRequest().authenticated()<br \/>\n);<br \/>\nreturn http.build();<br \/>\n}<\/p>\n<p>\/\/ \u7565<br \/>\n}<br \/>\n}<\/p>\n<h3>\u5904\u7406\u65b9\u6cd5 f\u01ce)<\/h3>\n<p>requestMatchers()\u306e\u5f15\u6570\u306b&#8221;\/webjars\/**&#8221;\u3092\u8ffd\u8a18\u3002<br \/>\n\/\/ \u7565<br \/>\n).authorizeHttpRequests(authz -&gt; authz<br \/>\n.requestMatchers(&#8220;\/css\/**&#8221;, &#8220;\/webjars\/**&#8221;).permitAll() \/\/ webjars\u306e\u4e0b\u306e\u968e\u5c64\u306e\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb(BootStrap\u30d5\u30a9\u30eb\u30c0\u542b\u3080)<br \/>\n.requestMatchers(&#8220;\/login&#8221;).permitAll()<br \/>\n.anyRequest().authenticated()<br \/>\n);<br \/>\n\/\/ \u7565<\/p>\n<h3>\u5f15\u7528<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u3010Spring Security\u3011\u8a8d\u8a3c\u30fb\u8a8d\u53ef\u306e\u57fa\u790e<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Spring Security login\u30da\u30fc\u30b8\u306bcss\u9069\u7528\u3067\u304d\u306a\u3044(MIME type (&#8216;text\/html&#8217;) is not a supported&#8230;)<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u6b63\u5728\u4f7f\u7528Springboot\u5236\u4f5cWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u78b0\u5230\u4e86\u6807\u9898\u4e2d\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u5199\u4e0b\u4e86\u8fd9\u4e2a\u5907\u5fd8\u5f55\u3002\u5982\u679c\u6709\u4efb\u4f55\u9519\u8bef\uff0c\u8bf7 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39683","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4f7f\u7528spring-security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528bootstrap\u7684css\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS\" \/>\n<meta property=\"og:description\" content=\"\u6211\u6b63\u5728\u4f7f\u7528Springboot\u5236\u4f5cWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u78b0\u5230\u4e86\u6807\u9898\u4e2d\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u5199\u4e0b\u4e86\u8fd9\u4e2a\u5907\u5fd8\u5f55\u3002\u5982\u679c\u6709\u4efb\u4f55\u9519\u8bef\uff0c\u8bf7 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4f7f\u7528spring-security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528bootstrap\u7684css\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-11T19:36:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T18:20:07+00:00\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/\",\"name\":\"\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-11T19:36:56+00:00\",\"dateModified\":\"2024-04-29T18:20:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4f7f\u7528spring-security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528bootstrap\u7684css\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS","og_description":"\u6211\u6b63\u5728\u4f7f\u7528Springboot\u5236\u4f5cWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u78b0\u5230\u4e86\u6807\u9898\u4e2d\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u5199\u4e0b\u4e86\u8fd9\u4e2a\u5907\u5fd8\u5f55\u3002\u5982\u679c\u6709\u4efb\u4f55\u9519\u8bef\uff0c\u8bf7 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u4f7f\u7528spring-security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528bootstrap\u7684css\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-11T19:36:56+00:00","article_modified_time":"2024-04-29T18:20:07+00:00","author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/","name":"\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-11T19:36:56+00:00","dateModified":"2024-04-29T18:20:07+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728\u4f7f\u7528Spring Security\u65f6\uff0c\u767b\u5f55\u9875\u9762\u672a\u5e94\u7528BootStrap\u7684CSS"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e4%bd%bf%e7%94%a8spring-security%e6%97%b6%ef%bc%8c%e7%99%bb%e5%bd%95%e9%a1%b5%e9%9d%a2%e6%9c%aa%e5%ba%94%e7%94%a8bootstrap%e7%9a%84css%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=39683"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39683\/revisions"}],"predecessor-version":[{"id":89091,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39683\/revisions\/89091"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}