{"id":692,"date":"2023-11-26T01:30:38","date_gmt":"2022-07-05T10:01:51","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/"},"modified":"2025-08-01T01:42:15","modified_gmt":"2025-07-31T16:42:15","slug":"spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/","title":{"rendered":"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b"},"content":{"rendered":"<p>\u4eca\u65e5\u306f\u30b9\u30d7\u30ea\u30f3\u30b0\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u3068\u8a8d\u53ef\u306e\u4f8b\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u6295\u7a3f\u3092\u8aad\u3080\u524d\u306b\u3001\u79c1\u306e\u4ee5\u524d\u306e\u6295\u7a3f\u300cSpring 4 Security MVC \u30ed\u30b0\u30a4\u30f3\u30ed\u30b0\u30a2\u30a6\u30c8\u306e\u4f8b\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u306b\u3088\u308a\u3001Spring 4 Security\u306b\u95a2\u3059\u308b\u57fa\u672c\u7684\u306a\u77e5\u8b58\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30d7\u30ea\u30f3\u30b0\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5f79\u5272<\/h2>\n<p>\u3053\u306e\u6295\u7a3f\u3067\u306f\u3001Spring\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u300cUSER\u300d\u3084\u300cADMIN\u300d\u3068\u3044\u3063\u305fSpring\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30ed\u30fc\u30eb\u3092\u3069\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u3001\u4f7f\u7528\u3057\u3001\u7ba1\u7406\u3059\u308b\u304b\u306b\u3064\u3044\u3066\u8a71\u3057\u5408\u3044\u307e\u3059\u3002\u3053\u306e\u6295\u7a3f\u306e\u4f8b\u3082\u3001\u4ee5\u524d\u306e\u6295\u7a3f\u3068\u540c\u69d8\u306b\u3001Spring 4 MVC Security\u306e\u30a4\u30f3\u30e1\u30e2\u30ea\u30b9\u30c8\u30a2\u3068Spring Java Configuration\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001web.xml\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u305b\u305a\u3001Spring XML\u69cb\u6210\u306e\u4e00\u884c\u3082\u8a18\u8ff0\u3057\u307e\u305b\u3093\u3002\u79c1\u305f\u3061\u306f\u300c\u30a4\u30f3\u30e1\u30e2\u30ea\u30b9\u30c8\u30a2\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u306e\u8cc7\u683c\u60c5\u5831\u3092\u4fdd\u5b58\u30fb\u7ba1\u7406\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u306e\u958b\u767a\u306b\u306f\u3001Spring 4.0.2.RELEASE\u3001Spring STS 3.7 Suite IDE\u3001Spring TC Server 3.1\u3001Java 1.8\u3001\u304a\u3088\u3073Maven\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30d7\u30ea\u30f3\u30b0\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5f79\u5272\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4ee5\u4e0b\u306e\u8a73\u7d30\u3092\u6301\u3064\u300cSimple Spring Web Maven\u300d\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092Spring STS Suite\u3067\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\uff1aSpringMVCSecruityMavenRolesApp2\u3002\u4ee5\u524d\u306e\u6295\u7a3f\u3067\u4f7f\u7528\u3057\u305fpom.xml\u30d5\u30a1\u30a4\u30eb\u3092\u305d\u306e\u307e\u307e\u4f7f\u7528\u3057\u3001\u4ee5\u4e0b\u306e\u5909\u66f4\u3092\u52a0\u3048\u307e\u3059\u3002<\/ol>\n<pre class=\"post-pre\"><code>&lt;artifactId&gt;SpringMVCSecruityMavenRolesApp&lt;\/artifactId&gt;\r\n\r\n&lt;build&gt;\r\n  &lt;finalName&gt;SpringMVCSecruityMavenRolesApp&lt;\/finalName&gt;\r\n&lt;\/build&gt;\r\n&lt;\/project&gt;\r\n<\/code><\/pre>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u79c1\u306e\u524d\u306e\u6295\u7a3f\u304b\u3089\u3001\u3059\u3079\u3066\u306eJava\u3068JSP\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u306f\u3001\u66f4\u65b0\u3055\u308c\u305f\u3082\u306e\u307e\u305f\u306f\u65b0\u305f\u306b\u8ffd\u52a0\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u307f\u3092\u8b70\u8ad6\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>LoginSecurityConfig.java\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u3001\u300cUSER\u300d\u3068\u300cADMIN\u300d\u3068\u3044\u3046\u30e6\u30fc\u30b6\u30fc\u30ed\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<pre class=\"post-pre\"><code>package com.scdev.spring.secuity.config;\r\n\r\nimport org.springframework.beans.factory.annotation.Autowired;\r\nimport org.springframework.context.annotation.Configuration;\r\nimport org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;\r\nimport org.springframework.security.config.annotation.web.builders.HttpSecurity;\r\nimport org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;\r\nimport org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;\r\n\r\n@Configuration\r\n@EnableWebSecurity\r\npublic class LoginSecurityConfig extends WebSecurityConfigurerAdapter {\r\n\r\n\t@Autowired\r\n\tpublic void configureGlobal(AuthenticationManagerBuilder authenticationMgr) throws Exception {\r\n\t\tauthenticationMgr.inMemoryAuthentication()\r\n\t\t\t.withUser(\"jduser\").password(\"jdu@123\").authorities(\"ROLE_USER\")\r\n\t\t\t.and()\r\n\t\t\t.withUser(\"jdadmin\").password(\"jda@123\").authorities(\"ROLE_USER\",\"ROLE_ADMIN\");\r\n\t}\r\n\t\r\n\t@Override\r\n\tprotected void configure(HttpSecurity http) throws Exception {\r\n\r\n\t\t\r\n\t\thttp.authorizeRequests()\r\n\t\t\t.antMatchers(\"\/homePage\").access(\"hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')\")\r\n\t\t\t.antMatchers(\"\/userPage\").access(\"hasRole('ROLE_USER')\")\r\n\t\t\t.antMatchers(\"\/adminPage\").access(\"hasRole('ROLE_ADMIN')\")\r\n\t\t\t.and()\r\n\t\t\t\t.formLogin().loginPage(\"\/loginPage\")\r\n\t\t\t\t.defaultSuccessUrl(\"\/homePage\")\r\n\t\t\t\t.failureUrl(\"\/loginPage?error\")\r\n\t\t\t\t.usernameParameter(\"username\").passwordParameter(\"password\")\t\t\t\t\r\n\t\t\t.and()\r\n\t\t\t\t.logout().logoutSuccessUrl(\"\/loginPage?logout\"); \r\n\t\t\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>\u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>configureGlobal()\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u30012\u3064\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u30021\u3064\u306e\u30e6\u30fc\u30b6\u30fc\u306f\u300cROLE_USER\u300d\u306e\u5f79\u5272\u3092\u6301\u3061\u3001\u3082\u30461\u3064\u306e\u30e6\u30fc\u30b6\u30fc\u306f\u300cROLE_USER\u300d\u3068\u300cROLE_ADMIN\u300d\u306e\u4e21\u65b9\u306e\u5f79\u5272\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u3053\u306e2\u756a\u76ee\u306e\u30e6\u30fc\u30b6\u30fc\u306f\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u3001\u79c1\u305f\u3061\u306f\u4efb\u610f\u306e\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u5f79\u5272\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u5f79\u5272\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001authorities\uff08ROLE\uff09\u307e\u305f\u306froles\uff08ROLE\uff09\u30e1\u30bd\u30c3\u30c9\u306e\u3069\u3061\u3089\u304b\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>authorities\uff08\uff09\u30e1\u30bd\u30c3\u30c9\u3068roles\uff08\uff09\u30e1\u30bd\u30c3\u30c9\u306e\u9055\u3044\uff1a<\/ol>\n<ul class=\"post-ul\">\n<li>authorities() needs complete role name like \u201cROLE_USER\u201d<\/li>\n<li>roles() needs role name like \u201cUSER\u201d. It will automatically adds \u201cROLE_\u201d value to this \u201cUSER\u201d role name.<\/li>\n<\/ul>\n<ol>configure()\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u5fc5\u8981\u306a\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u6301\u3064\u7570\u306a\u308bURL\u3092\u5b9a\u7fa9\u3057\u307e\u3057\u305f\u3002<\/ol>\n<pre class=\"post-pre\"><code>antMatchers(\"\/homePage\")\r\n   .access(\"hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')\")\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u306f\u3001\u300c\/homePage\u300d\u304cUSER\u3068ADMIN\u306e\u4e21\u65b9\u306e\u5f79\u5272\u3067\u5229\u7528\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code> .antMatchers(\"\/userPage\").access(\"hasRole('ROLE_USER')\")\r\n .antMatchers(\"\/adminPage\").access(\"hasRole('ROLE_ADMIN')\")\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u306f\u3001&#8221;\/userPage&#8221;\u306f\u300cUSER\u300d\u306e\u5f79\u5272\u306e\u307f\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3001\u307e\u305f &#8220;\/adminPage&#8221;\u306f\u300cADMIN\u300d\u306e\u5f79\u5272\u306e\u307f\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u4ed6\u306e\u5f79\u5272\u304c\u3053\u308c\u3089\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408\u3001&#8221;403 \u30a2\u30af\u30bb\u30b9\u304c\u62d2\u5426\u3055\u308c\u307e\u3057\u305f&#8221;\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u65b0\u3057\u3044URL\u30a2\u30af\u30bb\u30b9\u30d1\u30b9\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u3001LoginController.java\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<pre class=\"post-pre\"><code>package com.scdev.spring.web.controller;\r\n\r\nimport org.springframework.stereotype.Controller;\r\nimport org.springframework.web.bind.annotation.RequestMapping;\r\nimport org.springframework.web.bind.annotation.RequestMethod;\r\nimport org.springframework.web.bind.annotation.RequestParam;\r\nimport org.springframework.web.servlet.ModelAndView;\r\n\r\n@Controller\r\npublic class LoginController {\r\n\r\n\t@RequestMapping(value = { \"\/\"}, method = RequestMethod.GET)\r\n\tpublic ModelAndView welcomePage() {\r\n\t\tModelAndView model = new ModelAndView();\r\n\t\tmodel.setViewName(\"welcomePage\");\r\n\t\treturn model;\r\n\t}\r\n\r\n\t@RequestMapping(value = { \"\/homePage\"}, method = RequestMethod.GET)\r\n\tpublic ModelAndView homePage() {\r\n\t\tModelAndView model = new ModelAndView();\r\n\t\tmodel.setViewName(\"homePage\");\r\n\t\treturn model;\r\n\t}\r\n\t\r\n\t@RequestMapping(value = {\"\/userPage\"}, method = RequestMethod.GET)\r\n\tpublic ModelAndView userPage() {\r\n\t\tModelAndView model = new ModelAndView();\r\n\t\tmodel.setViewName(\"userPage\");\r\n\t\treturn model;\r\n\t}\r\n\t\r\n\t@RequestMapping(value = {\"\/adminPage\"}, method = RequestMethod.GET)\r\n\tpublic ModelAndView adminPage() {\r\n\t\tModelAndView model = new ModelAndView();\r\n\t\tmodel.setViewName(\"adminPage\");\r\n\t\treturn model;\r\n\t}\r\n\t\r\n\t@RequestMapping(value = \"\/loginPage\", method = RequestMethod.GET)\r\n\tpublic ModelAndView loginPage(@RequestParam(value = \"error\",required = false) String error,\r\n\t@RequestParam(value = \"logout\",\trequired = false) String logout) {\r\n\t\t\r\n\t\tModelAndView model = new ModelAndView();\r\n\t\tif (error != null) {\r\n\t\t\tmodel.addObject(\"error\", \"Invalid Credentials provided.\");\r\n\t\t}\r\n\r\n\t\tif (logout != null) {\r\n\t\t\tmodel.addObject(\"message\", \"Logged out from JournalDEV successfully.\");\r\n\t\t}\r\n\r\n\t\tmodel.setViewName(\"loginPage\");\r\n\t\treturn model;\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u524d\u56de\u306e\u6295\u7a3f\u4f8b\u306b\u52a0\u3048\u3066\u3001\u3053\u3053\u306b2\u3064\u306e\u65b0\u3057\u3044URL\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u300c\/userPage\u300d\u306fUSER\u30ed\u30fc\u30eb\u304c\u901a\u5e38\u306e\u30e6\u30fc\u30b6\u30fc\u6d3b\u52d5\u3092\u30a2\u30af\u30bb\u30b9\u3057\u3066\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>\u300c\/adminPage\u300d\u306fADMIN\u30ed\u30fc\u30eb\u304c\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u306e\u6d3b\u52d5\u3092\u30a2\u30af\u30bb\u30b9\u3057\u3066\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001ADMIN\u30ed\u30fc\u30eb\u306f\u300c\/userPage\u300d\u306eURL\u306b\u3082\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>homePage.jsp\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u306e\u5f79\u5272\u306b\u7279\u5b9a\u306e\u6d3b\u52d5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@taglib prefix=\"c\" uri=\"https:\/\/java.sun.com\/jsp\/jstl\/core\"%&gt;\r\n&lt;a href=\"${pageContext.request.contextPath}\/userPage\"&gt;JD User&lt;\/a&gt; | &lt;a href=\"${pageContext.request.contextPath}\/adminPage\"&gt;JD Admin&lt;\/a&gt; | &lt;a href=\"javascript:document.getElementById('logout').submit()\"&gt;Logout&lt;\/a&gt;\r\n\r\n&lt;h3&gt;Welcome to JournalDEV Tutorials&lt;\/h3&gt;\r\n&lt;ul&gt;\r\n   &lt;li&gt;Java 8 tutorial&lt;\/li&gt;\r\n   &lt;li&gt;Spring tutorial&lt;\/li&gt;\r\n   &lt;li&gt;Gradle tutorial&lt;\/li&gt;\r\n   &lt;li&gt;BigData tutorial&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n\r\n&lt;c:url value=\"\/logout\" var=\"logoutUrl\" \/&gt;\r\n&lt;form id=\"logout\" action=\"${logoutUrl}\" method=\"post\" &gt;\r\n  &lt;input type=\"hidden\" name=\"${_csrf.parameterName}\" value=\"${_csrf.token}\" \/&gt;\r\n&lt;\/form&gt;\r\n<\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001\u30c8\u30c3\u30d7\u30d5\u30ec\u30fc\u30e0\u306b3\u3064\u306e\u30e1\u30cb\u30e5\u30fc\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002&#8221;\u30ed\u30b0\u30a2\u30a6\u30c8&#8221;\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u524d\u306e\u6295\u7a3f\u3067\u65e2\u306b\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u65b0\u305f\u306a2\u3064\u306e\u30ea\u30f3\u30af\u306f\u4ee5\u4e0b\u3067\u3059\uff1a<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>JD\u30e6\u30fc\u30b6\u30fc\uff1a\u300c\u30e6\u30fc\u30b6\u30fc\u300d\u3068\u300c\u7ba1\u7406\u8005\u300d\u306e\u4e21\u65b9\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>JD\u7ba1\u7406\u8005\uff1a\u30a2\u30af\u30bb\u30b9\u306f\u300c\u7ba1\u7406\u8005\u300d\u306e\u5f79\u5272\u306e\u307f\u53ef\u80fd\u3067\u3059\u3002<\/ol>\n<p>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u300cJD User\u300d\u30ea\u30f3\u30af\u306e\u307f\u3092\u300cUSER\u300d\u5f79\u5272\u306b\u8868\u793a\u3057\u3001\u300cJD Admin\u300d\u30ea\u30f3\u30af\u3092\u975e\u8868\u793a\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u30ea\u30f3\u30af\u304c\u300cUSER\u300d\u5f79\u5272\u306b\u3088\u3063\u3066\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u304b\u3069\u3046\u304b\u3084\u3001\u6b63\u78ba\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u3053\u306e\u30ea\u30f3\u30af\u306f\u975e\u8868\u793a\u306b\u3057\u3066\u3044\u307e\u305b\u3093\u300220. \u300cADMIN\u300d\u306e\u5f79\u5272\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3068\u3057\u3066\u6a5f\u80fd\u3059\u308b\u65b0\u3057\u3044adminPage.jsp\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@taglib prefix=\"c\" uri=\"https:\/\/java.sun.com\/jsp\/jstl\/core\"%&gt;\r\n&lt;h3&gt;Welcome to JournalDEV Tutorials&lt;\/h3&gt;\r\n&lt;h3&gt;Admin Page&lt;\/h3&gt;\r\n\r\n&lt;c:url value=\"\/logout\" var=\"logoutUrl\" \/&gt;\r\n&lt;form id=\"logout\" action=\"${logoutUrl}\" method=\"post\" &gt;\r\n  &lt;input type=\"hidden\" name=\"${_csrf.parameterName}\" value=\"${_csrf.token}\" \/&gt;\r\n&lt;\/form&gt;\r\n&lt;c:if test=\"${pageContext.request.userPrincipal.name != null}\"&gt;\r\n\t&lt;a href=\"javascript:document.getElementById('logout').submit()\"&gt;Logout&lt;\/a&gt;\r\n&lt;\/c:if&gt;\r\n<\/code><\/pre>\n<ol>\u300cUSER\u300d\u306e\u5f79\u5272\u7528\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3068\u3057\u3066\u3001\u65b0\u3057\u3044userPage.jsp\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<pre class=\"post-pre\"><code>&lt;%@taglib prefix=\"c\" uri=\"https:\/\/java.sun.com\/jsp\/jstl\/core\"%&gt;\r\n&lt;h3&gt;Welcome to JournalDEV Tutorials&lt;\/h3&gt;\r\n&lt;h3&gt;User Page&lt;\/h3&gt;\r\n\r\n&lt;c:url value=\"\/logout\" var=\"logoutUrl\" \/&gt;\r\n&lt;form id=\"logout\" action=\"${logoutUrl}\" method=\"post\" &gt;\r\n  &lt;input type=\"hidden\" name=\"${_csrf.parameterName}\" value=\"${_csrf.token}\" \/&gt;\r\n&lt;\/form&gt;\r\n&lt;c:if test=\"${pageContext.request.userPrincipal.name != null}\"&gt;\r\n\t&lt;a href=\"javascript:document.getElementById('logout').submit()\"&gt;Logout&lt;\/a&gt;\r\n&lt;\/c:if&gt;\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\u4eca\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u6700\u7d42\u69cb\u9020\u3092\u898b\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3046\u6642\u3067\u3059\u300226. \u6700\u7d42\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u69cb\u9020\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u6625\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5f79\u5272\u306e\u4f8b\u3068\u306a\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Spring STS IDE\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u5b9f\u884c\u300d\u2192\u300c\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u5b9f\u884c\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a6\u30a7\u30eb\u30ab\u30e0\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059: 3. \u300cJournalDEV\u306b\u30ed\u30b0\u30a4\u30f3\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>5. \u6700\u521d\u306b\u300cUSER\u300d\u306e\u6a29\u9650\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059:<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30e6\u30fc\u30b6\u30fc\u540d: jduser \u30d1\u30b9\u30ef\u30fc\u30c9: jdu@123 \u3053\u308c\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u30013\u3064\u306e\u30e1\u30cb\u30e5\u30fc\u30aa\u30d7\u30b7\u30e7\u30f3\u300cJD User\u300d\u3001\u300cJD Admin\u300d\u3001\u300c\u30ed\u30b0\u30a2\u30a6\u30c8\u300d\u304c\u3042\u308a\u307e\u3059\u3002 \u300cJD User\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u300cUSER\u300d\u306e\u6a29\u9650\u60c5\u5831\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3053\u306e\u30ea\u30f3\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002 Spring STS IDE\u3067\u623b\u308b\u77e2\u5370\u3092\u4f7f\u7528\u3057\u3066\u3001\u4eca\u5ea6\u306f\u300cJD Admin\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002 \u300cUSER\u300d\u306e\u6a29\u9650\u60c5\u5831\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u306e\u30ea\u30f3\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u6b21\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059:\u300c403 \u30a2\u30af\u30bb\u30b9\u304c\u62d2\u5426\u3055\u308c\u307e\u3057\u305f\u300d\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>9. \u4eca\u5ea6\u306f\u300cADMIN\u300d\u306e\u6a29\u9650\u60c5\u5831\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30e6\u30fc\u30b6\u30fc\u540d: jdadmin \u30d1\u30b9\u30ef\u30fc\u30c9: jda@123 \u3053\u306e\u6642\u70b9\u3067\u300cJD Admin\u300d\u30ea\u30f3\u30af\u306b\u6b63\u5e38\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002 \u300c\u30ed\u30b0\u30a2\u30a6\u30c8\u300d\u30ea\u30f3\u30af\u3092\u30c6\u30b9\u30c8\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<p>\u3053\u308c\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30da\u30fc\u30b8\u306b\u8a8d\u53ef\u3055\u308c\u305f\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306eSpring\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5f79\u5272\u306e\u4f8b\u306b\u3064\u3044\u3066\u306e\u3059\u3079\u3066\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u306f\u30b9\u30d7\u30ea\u30f3\u30b0\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u3068\u8a8d\u53ef\u306e\u4f8b\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u6295\u7a3f\u3092\u8aad\u3080\u524d\u306b\u3001\u79c1\u306e\u4ee5\u524d\u306e\u6295\u7a3f\u300cSpring 4 Security MVC \u30ed\u30b0\u30a4\u30f3\u30ed\u30b0\u30a2\u30a6\u30c8\u306e\u4f8b\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u306b\u3088\u308a\u3001S [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-692","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"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>Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\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\/ja\/blog\/spring-security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\" \/>\n<meta property=\"og:description\" content=\"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/spring-security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-05T10:01:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T16:42:15+00:00\" \/>\n<meta name=\"author\" content=\"\u5149, \u660e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5149, \u660e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"20\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/\",\"name\":\"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-07-05T10:01:51+00:00\",\"dateModified\":\"2025-07-31T16:42:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"description\":\"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\",\"name\":\"\u5149, \u660e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"caption\":\"\u5149, \u660e\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b - Blog - Silicon Cloud","description":"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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\/ja\/blog\/spring-security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\/","og_locale":"ja_JP","og_type":"article","og_title":"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b","og_description":"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/spring-security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-07-05T10:01:51+00:00","article_modified_time":"2025-07-31T16:42:15+00:00","author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"20\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/","name":"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-07-05T10:01:51+00:00","dateModified":"2025-07-31T16:42:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"description":"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Spring Security\u306e\u30ed\u30fc\u30eb\u30d9\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u8a8d\u53ef\u306e\u4f8b"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55","name":"\u5149, \u660e","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","caption":"\u5149, \u660e"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-security%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%ab%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e8%aa%8d%e5%8f%af%e3%81%ae%e4%be%8b\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=692"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/692\/revisions"}],"predecessor-version":[{"id":43813,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/692\/revisions\/43813"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}