{"id":704,"date":"2022-10-18T05:43:59","date_gmt":"2023-03-29T23:27:52","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/"},"modified":"2025-08-01T01:47:48","modified_gmt":"2025-07-31T16:47:48","slug":"spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/","title":{"rendered":"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002"},"content":{"rendered":"<p>@RequestMapping\u306f\u3001\u6700\u3082\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bSpring MVC\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\uff11\u3064\u3067\u3059\u3002org.springframework.web.bind.annotation.RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001Web\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u7279\u5b9a\u306e\u30cf\u30f3\u30c9\u30e9\u30af\u30e9\u30b9\u3084\u30cf\u30f3\u30c9\u30e9\u30e1\u30bd\u30c3\u30c9\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002@RequestMapping\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30af\u30e9\u30b9\u3060\u3051\u3067\u306a\u304f\u3001\u30e1\u30bd\u30c3\u30c9\u306b\u3082\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u65e5\u306f\u3001\u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u3055\u307e\u3056\u307e\u306a\u4f7f\u7528\u65b9\u6cd5\u3068\u3001\u4f8b\u3084\u4ed6\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308b@PathVariable\u3068@RequestParam\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u6625\u306e @RequestMapping<\/h2>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u300c@RequestMapping\u300d\u3092\u4f7f\u3063\u305f\u5834\u5408\u306e\u30af\u30e9\u30b9\u3068\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/ol>\n<\/li>\n<\/ol>\n<p>\u30af\u30e9\u30b9\u3067\u306e\u300c@RequestMapping\u300d\u306e\u4f7f\u7528\uff1a\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3068\u4e00\u7dd2\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30d9\u30fc\u30b9\u306eURI\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<br \/>\n@Controller<br \/>\n@RequestMapping(&#8220;\/home&#8221;)<br \/>\npublic class HomeController {<\/p>\n<p>}<\/p>\n<p>\u4e0a\u8a18\u306e\u5834\u5408\u3001\u300c\/home\u300d\u306f\u3053\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u4f7f\u7528\u3055\u308c\u308bURI\u3067\u3059\u3002\u3053\u306e\u6982\u5ff5\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3068\u975e\u5e38\u306b\u3088\u304f\u4f3c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30bd\u30c3\u30c9\u3067\u306e\u300c@RequestMapping\u300d\u306e\u4f7f\u7528\uff1a\u30e1\u30bd\u30c3\u30c9\u3068\u4e00\u7dd2\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30cf\u30f3\u30c9\u30e9\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u3059\u308bURI\u30d1\u30bf\u30fc\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<br \/>\n@RequestMapping(value=&#8221;\/method0&#8243;)<br \/>\n@ResponseBody<br \/>\npublic String method0(){<br \/>\nreturn &#8220;method0&#8221;;<br \/>\n}<\/p>\n<p>\u4e0a\u8a18\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u300c@RequestMapping(&#8220;\/method0&#8221;)\u300d\u3068\u3057\u3066\u3082\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u3053\u306eWeb\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u305f\u3081\u306bString\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u300c@ResponseBody\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u4f8b\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u3059\u308b\u305f\u3081\u3067\u3059\u3002\u79c1\u304c\u3044\u3064\u3082\u3084\u308b\u3088\u3046\u306b\u3001\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u3092Spring MVC\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3057\u3001\u5358\u7d14\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u8907\u6570\u306eURI\u3067\u306e\u300c@RequestMapping\u300d\u306e\u4f7f\u7528\uff1a\u8907\u6570\u306eURI\u306e\u51e6\u7406\u306b\u5358\u4e00\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<br \/>\n@RequestMapping(value={&#8220;\/method1&#8243;,&#8221;\/method1\/second&#8221;})<br \/>\n@ResponseBody<br \/>\npublic String method1(){<br \/>\nreturn &#8220;method1&#8243;;<br \/>\n}<\/p>\n<p>\u300cRequestMapping\u300d\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u898b\u308b\u3068\u3001\u3059\u3079\u3066\u306e\u5909\u6570\u304c\u914d\u5217\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u30cf\u30f3\u30c9\u30e9\u30e1\u30bd\u30c3\u30c9\u306eURI\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u305f\u3081\u306bString\u914d\u5217\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>HTTP\u30e1\u30bd\u30c3\u30c9\u3067\u306e\u300c@RequestMapping\u300d\u306e\u4f7f\u7528\uff1a\u30ea\u30af\u30a8\u30b9\u30c8URI\u306f\u540c\u3058\u3067\u3082\u3001\u7570\u306a\u308b\u64cd\u4f5c\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u300c@RequestMapping\u300d\u306e\u30e1\u30bd\u30c3\u30c9\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u308bHTTP\u30e1\u30bd\u30c3\u30c9\u3092\u7d5e\u308a\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<br \/>\n@RequestMapping(value=&#8221;\/method2&#8221;, method=RequestMethod.POST)<br \/>\n@ResponseBody<br \/>\npublic String method2(){<br \/>\nreturn &#8220;method2&#8243;;<br \/>\n}<\/p>\n<p>@RequestMapping(value=&#8221;\/method3&#8221;, method={RequestMethod.POST,RequestMethod.GET})<br \/>\n@ResponseBody<br \/>\npublic String method3(){<br \/>\nreturn &#8220;method3&#8243;;<br \/>\n}<\/p>\n<p>\u30d8\u30c3\u30c0\u30fc\u3067\u306e\u300c@RequestMapping\u300d\u306e\u4f7f\u7528\uff1a\u30cf\u30f3\u30c9\u30e9\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u30d8\u30c3\u30c0\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<br \/>\n@RequestMapping(value=&#8221;\/method4&#8243;, headers=&#8221;name=scdev&#8221;)<br \/>\n@ResponseBody<br \/>\npublic String method4(){<br \/>\nreturn &#8220;method4&#8243;;<br \/>\n}<\/p>\n<p>@RequestMapping(value=&#8221;\/method5&#8221;, headers={&#8220;name=scdev&#8221;, &#8220;id=1&#8221;})<br \/>\n@ResponseBody<br \/>\npublic String method5(){<br \/>\nreturn &#8220;method5&#8243;;<br \/>\n}<\/p>\n<p>\u30d7\u30ed\u30c7\u30e5\u30fc\u30b9\u3068\u30b3\u30f3\u30b7\u30e5\u30fc\u30e0\u306e\u305f\u3081\u306e\u300c@RequestMapping\u300d\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5f62\u5f0f\u3084\u30ec\u30b9\u30dd\u30f3\u30b9\u306eMIME\u30bf\u30a4\u30d7\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001Content-Type\u30d8\u30c3\u30c0\u30fc\u3068Accept\u30d8\u30c3\u30c0\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u660e\u78ba\u3055\u306e\u305f\u3081\u306b\u3001\u300c@RequestMapping\u300d\u3067\u306f\u3001\u30d7\u30ed\u30c7\u30e5\u30fc\u30b9\u3068\u30b3\u30f3\u30b7\u30e5\u30fc\u30e0\u306e\u5909\u6570\u3092\u63d0\u4f9b\u3057\u3001\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<br \/>\n@RequestMapping(value=&#8221;\/method6&#8221;, produces={&#8220;application\/json&#8221;,&#8221;application\/xml&#8221;}, consumes=&#8221;text\/html&#8221;)<br \/>\n@ResponseBody<br \/>\npublic String method6(){<br \/>\nreturn &#8220;method6&#8221;;<br \/>\n}<\/p>\n<p>\u4e0a\u8a18\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001Content-Type\u3092text\/html\u3068\u3057\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6d88\u8cbb\u3057\u3001application\/json\u304a\u3088\u3073application\/xml\u306e\u30bf\u30a4\u30d7\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u6625\u306e @PathVariable<\/h2>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@RequestMapping\u3068@PathVariable\uff1aRequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001URI\u306e1\u3064\u307e\u305f\u306f\u8907\u6570\u306e\u5024\u304c\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u6a5f\u80fd\u3059\u308b\u52d5\u7684URI\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002URI\u306e\u52d5\u7684\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u306f\u3001\u7279\u5b9a\u306e\u5165\u529b\u30bf\u30a4\u30d7\u306e\u307f\u3092\u53d7\u3051\u5165\u308c\u308b\u305f\u3081\u306e\u6b63\u898f\u8868\u73fe\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002@PathVariable\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u4e00\u7dd2\u306b\u6a5f\u80fd\u3057\u3001URI\u5909\u6570\u3092\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306e1\u3064\u306b\u30de\u30c3\u30d7\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/ol>\n<\/li>\n<\/ol>\n<p>@RequestMapping(value=&#8221;\/method7\/{id}&#8221;)<br \/>\n@ResponseBody<br \/>\npublic String method7(@PathVariable(&#8220;id&#8221;) int id){<br \/>\nreturn &#8220;method7 with id=&#8221;+id;<br \/>\n}<\/p>\n<p>@RequestMapping(value=&#8221;\/method8\/{id:[\\\\d]+}\/{name}&#8221;)<br \/>\n@ResponseBody<br \/>\npublic String method8(@PathVariable(&#8220;id&#8221;) long id, @PathVariable(&#8220;name&#8221;) String name){<br \/>\nreturn &#8220;method8 with id= &#8220;+id+&#8221; and name=&#8221;+name;<br \/>\n}<\/p>\n<h2>\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306eSpring\u306b\u304a\u3051\u308bSpring @RequestParam<\/h2>\n<ol>URL\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u5bfe\u3059\u308b@RequestParam\u3092\u4f7f\u7528\u3059\u308b@RequestMapping\uff1a\u30ea\u30af\u30a8\u30b9\u30c8URL\u3067\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4e3b\u306bGET\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3068@RequestParam\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001URL\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u53d6\u5f97\u3057\u3001\u30e1\u30bd\u30c3\u30c9\u5f15\u6570\u306b\u30de\u30c3\u30d7\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/ol>\n<pre class=\"post-pre\"><code>```\r\n@RequestMapping(value=\"\/method9\")\r\n@ResponseBody\r\npublic String method9(@RequestParam(\"id\") int id){\r\n\treturn \"method9 with id= \"+id;\r\n}\r\n```\r\n\r\nFor this method to work, the parameter name should be \"id\" and it should be of type int.\r\n<\/code><\/pre>\n<ol>@RequestMapping\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\uff1a\u30e1\u30bd\u30c3\u30c9\u306evalue\u304c\u7a7a\u306e\u5834\u5408\u3001\u305d\u308c\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30af\u30e9\u30b9\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/ol>\n<pre class=\"post-pre\"><code>```\r\n@RequestMapping()\r\n@ResponseBody\r\npublic String defaultMethod(){\r\n\treturn \"default method\";\r\n}\r\n```\r\n\r\nAs you have seen above that we have mapped `\/home` to `HomeController`, this method will be used for the default URI requests.\r\n<\/code><\/pre>\n<ol>@RequestMapping\u306e\u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af\u30e1\u30bd\u30c3\u30c9: \u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30af\u30e9\u30b9\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3001\u30de\u30c3\u30c1\u30f3\u30b0\u3059\u308b\u30cf\u30f3\u30c9\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u304c\u306a\u3044\u3068\u304d\u3067\u3082\u3001\u3059\u3079\u3066\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30ad\u30e3\u30c3\u30c1\u3067\u304d\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u3059\u308b\u30cf\u30f3\u30c9\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u30ab\u30b9\u30bf\u30e0\u306e404\u30ec\u30b9\u30dd\u30f3\u30b9\u30da\u30fc\u30b8\u3092\u30e6\u30fc\u30b6\u30fc\u306b\u9001\u4fe1\u3059\u308b\u969b\u306b\u4fbf\u5229\u3067\u3059\u3002<\/ol>\n<pre class=\"post-pre\"><code>```\r\n@RequestMapping(\"*\")\r\n@ResponseBody\r\npublic String fallbackMethod(){\r\n\treturn \"fallback method\";\r\n}\r\n```\r\n<\/code><\/pre>\n<h3>\u6625\u306eRestMapping\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<p>\u4e0a\u8a18\u306e\u7570\u306a\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001Spring RestTemplate\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u304c\u3001\u4eca\u65e5\u306f\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306bcURL\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u30c7\u30fc\u30bf\u306e\u6d41\u308c\u3082\u5c11\u306a\u3044\u305f\u3081\u3067\u3059\u3002\u4e0a\u8a18\u306e\u3059\u3079\u3066\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3001\u51fa\u529b\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u7c21\u5358\u306a\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8springTest.sh\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>#!\/bin\/bash\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method0\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method0;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/xyz\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/xyz;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method1\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method1;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method1\/second\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method1\/second;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl -X POST https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method2\";\r\ncurl -X POST https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method2;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl -X POST https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method3\";\r\ncurl -X POST https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method3;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl -X GET https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method3\";\r\ncurl -X GET https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method3;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl -H \"name:scdev\" https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method4\";\r\ncurl -H \"name:scdev\" https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method4;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl -H \"name:scdev\" -H \"id:1\" https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method5\";\r\ncurl -H \"name:scdev\" -H \"id:1\" https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method5;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl -H \"Content-Type:text\/html\" https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6\";\r\ncurl -H \"Content-Type:text\/html\" https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl -H \"Content-Type:text\/html\" -H \"Accept:application\/json\" -i https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6\";\r\ncurl -H \"Content-Type:text\/html\" -H \"Accept:application\/json\" -i https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl -H \"Content-Type:text\/html\" -H \"Accept:application\/xml\" -i https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6\";\r\ncurl -H \"Content-Type:text\/html\" -H \"Accept:application\/xml\" -i https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method7\/1\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method7\/1;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method8\/10\/Lisa\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method8\/10\/Lisa;\r\nprintf \"\\n\\n*****\\n\\n\";\r\n\r\necho \"curl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method9?id=20\";\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method9?id=20;\r\nprintf \"\\n\\n*****DONE*****\\n\\n\";\r\n<\/code><\/pre>\n<p>\u79c1\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306fTomcat-7\u306b\u5c55\u958b\u3055\u308c\u3001\u30dd\u30fc\u30c89090\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u3002SpringRequestMappingExample\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u3059\u3002\u3053\u308c\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>scdev:~ scdev$ .\/springTest.sh \r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method0\r\nmethod0\r\n\r\n*****\r\n\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\r\ndefault method\r\n\r\n*****\r\n\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/xyz\r\nfallback method\r\n\r\n*****\r\n\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method1\r\nmethod1\r\n\r\n*****\r\n\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method1\/second\r\nmethod1\r\n\r\n*****\r\n\r\ncurl -X POST https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method2\r\nmethod2\r\n\r\n*****\r\n\r\ncurl -X POST https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method3\r\nmethod3\r\n\r\n*****\r\n\r\ncurl -X GET https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method3\r\nmethod3\r\n\r\n*****\r\n\r\ncurl -H name:scdev https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method4\r\nmethod4\r\n\r\n*****\r\n\r\ncurl -H name:scdev -H id:1 https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method5\r\nmethod5\r\n\r\n*****\r\n\r\ncurl -H Content-Type:text\/html https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6\r\nmethod6\r\n\r\n*****\r\n\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6\r\nfallback method\r\n\r\n*****\r\n\r\ncurl -H Content-Type:text\/html -H Accept:application\/json -i https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6\r\nHTTP\/1.1 200 OK\r\nServer: Apache-Coyote\/1.1\r\nContent-Type: application\/json\r\nContent-Length: 7\r\nDate: Thu, 03 Jul 2014 18:14:10 GMT\r\n\r\nmethod6\r\n\r\n*****\r\n\r\ncurl -H Content-Type:text\/html -H Accept:application\/xml -i https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method6\r\nHTTP\/1.1 200 OK\r\nServer: Apache-Coyote\/1.1\r\nContent-Type: application\/xml\r\nContent-Length: 7\r\nDate: Thu, 03 Jul 2014 18:14:10 GMT\r\n\r\nmethod6\r\n\r\n*****\r\n\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method7\/1\r\nmethod7 with id=1\r\n\r\n*****\r\n\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method8\/10\/Lisa\r\nmethod8 with id= 10 and name=Lisa\r\n\r\n*****\r\n\r\ncurl https:\/\/localhost:9090\/SpringRequestMappingExample\/home\/method9?id=20\r\nmethod9 with id= 20\r\n\r\n*****DONE*****\r\n\r\nscdev:~ scdev$ \r\n<\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u307b\u3068\u3093\u3069\u306f\u81ea\u5df1\u306b\u7406\u89e3\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3084\u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u305f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u304cSpring RequestMapping\u306e\u4f8b\u3067\u3059\u3002\u3053\u306e\u6ce8\u91c8\u3068\u305d\u306e\u69d8\u3005\u306a\u6a5f\u80fd\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u3068\u601d\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u3055\u307e\u3056\u307e\u306a\u30b7\u30ca\u30ea\u30aa\u3092\u8a66\u3057\u3066\u3055\u3089\u306b\u63a2\u6c42\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Spring MVC\u306eRequestMapping\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>@RequestMapping\u306f\u3001\u6700\u3082\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bSpring MVC\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\uff11\u3064\u3067\u3059\u3002org.springframework.web.bind.annotation.RequestMapping\u30a2\u30ce\u30c6\u30fc [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-704","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 MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u30d8\u30c3\u30c0\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc@RequestParam@PathVariable\u306e\u4f7f\u7528\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-mvc\u306erequestmapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002\" \/>\n<meta property=\"og:description\" content=\"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u30d8\u30c3\u30c0\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc@RequestParam@PathVariable\u306e\u4f7f\u7528\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-mvc\u306erequestmapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-29T23:27:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T16:47:48+00:00\" \/>\n<meta name=\"author\" content=\"\u6d77\u6597, \u8475\" \/>\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=\"\u6d77\u6597, \u8475\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"25\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-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/\",\"name\":\"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-03-29T23:27:52+00:00\",\"dateModified\":\"2025-07-31T16:47:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"description\":\"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u30d8\u30c3\u30c0\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc@RequestParam@PathVariable\u306e\u4f7f\u7528\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-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002\"}]},{\"@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\/20cfc053626f4d45c0fa7a4e7964b5b6\",\"name\":\"\u6d77\u6597, \u8475\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"caption\":\"\u6d77\u6597, \u8475\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002 - Blog - Silicon Cloud","description":"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u30d8\u30c3\u30c0\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc@RequestParam@PathVariable\u306e\u4f7f\u7528\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-mvc\u306erequestmapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\/","og_locale":"ja_JP","og_type":"article","og_title":"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002","og_description":"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u30d8\u30c3\u30c0\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc@RequestParam@PathVariable\u306e\u4f7f\u7528\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-mvc\u306erequestmapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-29T23:27:52+00:00","article_modified_time":"2025-07-31T16:47:48+00:00","author":"\u6d77\u6597, \u8475","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u6d77\u6597, \u8475","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"25\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/","name":"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-03-29T23:27:52+00:00","dateModified":"2025-07-31T16:47:48+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"description":"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u30d8\u30c3\u30c0\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc@RequestParam@PathVariable\u306e\u4f7f\u7528\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-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Spring MVC\u306e@RequestMapping\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30e1\u30bd\u30c3\u30c9\u3001\u30d8\u30c3\u30c0\u30fc\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3001@RequestParam\u3001@PathVariable\u306e\u4f7f\u7528\u4f8b\u3002"}]},{"@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\/20cfc053626f4d45c0fa7a4e7964b5b6","name":"\u6d77\u6597, \u8475","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","caption":"\u6d77\u6597, \u8475"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%aerequestmapping%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e4%be%8b%e3%80%82%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%83%bc%e3%80%81\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/704","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":43963,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/704\/revisions\/43963"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}