{"id":344,"date":"2023-10-31T03:34:41","date_gmt":"2022-09-05T17:03:30","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"},"modified":"2025-07-31T22:50:25","modified_gmt":"2025-07-31T13:50:25","slug":"spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","title":{"rendered":"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &#8211; \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb"},"content":{"rendered":"<p>\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f\u3001\u3069\u3093\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3082\u975e\u5e38\u306b\u4e00\u822c\u7684\u306a\u30bf\u30b9\u30af\u3067\u3059\u3002\u4ee5\u524d\u306fServlet\u3068Struts2\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u65b9\u6cd5\u3092\u898b\u3066\u304d\u307e\u3057\u305f\u3002\u4eca\u65e5\u306f\u3001Spring\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001Spring MVC\u3092\u4f7f\u7528\u3057\u305f\u30b7\u30f3\u30b0\u30eb\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<h2>Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h2>\n<p>Spring MVC\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u3001Apache Commons FileUpload API\u3092\u7d71\u5408\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3001\u7c21\u5358\u306a\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u3001STS\u3067\u30b7\u30f3\u30d7\u30eb\u306aSpring MVC\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u307b\u3068\u3093\u3069\u306e\u90e8\u5206\u306fSTS\u30c4\u30fc\u30eb\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30b3\u30fc\u30c9\u3067\u3059\u304c\u3001Spring\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u7d71\u5408\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u5909\u66f4\u306b\u7126\u70b9\u3092\u5f53\u3066\u307e\u3059\u3002<\/p>\n<h3>Apache Commons FileUpload\u306e\u305f\u3081\u306eMaven\u306e\u4f9d\u5b58\u95a2\u4fc2<\/h3>\n<p>\u307e\u305a\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306ajar\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u308b\u3088\u3046\u306b\u3001pom.xml\u30d5\u30a1\u30a4\u30eb\u306bApache Commons FileUpload\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u79c1\u306epom.xml\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u306e\u4f9d\u5b58\u6027\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;!-- Apache Commons FileUpload --&gt; \r\n&lt;dependency&gt;\r\n\t&lt;groupId&gt;commons-fileupload&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;commons-fileupload&lt;\/artifactId&gt;\r\n\t&lt;version&gt;1.3.1&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n\r\n&lt;!-- Apache Commons IO --&gt; \r\n&lt;dependency&gt;\r\n\t&lt;groupId&gt;commons-io&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;commons-io&lt;\/artifactId&gt;\r\n\t&lt;version&gt;2.4&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n<\/code><\/pre>\n<h3>Spring\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a9\u30fc\u30e0\u30d3\u30e5\u30fc<\/h3>\n<p>\u79c1\u305f\u3061\u306f\u3001Spring Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u5358\u4e00\u304a\u3088\u3073\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001JSP\u30da\u30fc\u30b8\u30922\u3064\u4f5c\u6210\u3057\u307e\u3059\u3002upload.jsp\u306e\u30d3\u30e5\u30fc\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ taglib uri=\"https:\/\/java.sun.com\/jsp\/jstl\/core\" prefix=\"c\" %&gt;\r\n&lt;%@ page session=\"false\" %&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Upload File Request Page&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\t&lt;form method=\"POST\" action=\"uploadFile\" enctype=\"multipart\/form-data\"&gt;\r\n\t\tFile to upload: &lt;input type=\"file\" name=\"file\"&gt;&lt;br \/&gt; \r\n\t\tName: &lt;input type=\"text\" name=\"name\"&gt;&lt;br \/&gt; &lt;br \/&gt; \r\n\t\t&lt;input type=\"submit\" value=\"Upload\"&gt; Press here to upload the file!\r\n\t&lt;\/form&gt;\t\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u3010Japanese\u3011<br \/>\n\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30de\u30eb\u30c1\u30d1\u30fc\u30c8\u306e.jsp\u8868\u793a\u30b3\u30fc\u30c9\uff1a<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ taglib uri=\"https:\/\/java.sun.com\/jsp\/jstl\/core\" prefix=\"c\" %&gt;\r\n&lt;%@ page session=\"false\" %&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;Upload Multiple File Request Page&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\t&lt;form method=\"POST\" action=\"uploadMultipleFile\" enctype=\"multipart\/form-data\"&gt;\r\n\t\tFile1 to upload: &lt;input type=\"file\" name=\"file\"&gt;&lt;br \/&gt; \r\n\t\tName1: &lt;input type=\"text\" name=\"name\"&gt;&lt;br \/&gt; &lt;br \/&gt; \r\n\t\tFile2 to upload: &lt;input type=\"file\" name=\"file\"&gt;&lt;br \/&gt; \r\n\t\tName2: &lt;input type=\"text\" name=\"name\"&gt;&lt;br \/&gt; &lt;br \/&gt;\r\n\t\t&lt;input type=\"submit\" value=\"Upload\"&gt; Press here to upload the file!\r\n\t&lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u5358\u7d14\u306aHTML\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002JSP\u3084Spring\u306e\u30bf\u30b0\u3092\u4f7f\u7528\u305b\u305a\u306b\u8907\u96d1\u3055\u3092\u907f\u3051\u3066\u3044\u307e\u3059\u3002\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u306f\u3001form\u306eenctype\u304cmultipart\/form-data\u3067\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001Spring Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u30d5\u30a1\u30a4\u30eb\u30c7\u30fc\u30bf\u3092\u542b\u3093\u3067\u3044\u308b\u3068\u8a8d\u8b58\u3057\u3001\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u3001\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u300cfile\u300d\u3068\u300cname\u300d\u306f\u540c\u3058\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u306f\u914d\u5217\u5f62\u5f0f\u3067\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\u5165\u529b\u914d\u5217\u3092\u53d6\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30fc\u30bf\u3092\u89e3\u6790\u3057\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h3>Spring MVC\u306e\u30de\u30eb\u30c1\u30d1\u30fc\u30c8\u69cb\u6210<\/h3>\n<p>\u30de\u30eb\u30c1\u30d1\u30fc\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u306bApache Commons FileUpload\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001multipartResolver\u30d3\u30fc\u30f3\u3092org.springframework.web.multipart.commons.CommonsMultipartResolver\u30af\u30e9\u30b9\u3067\u69cb\u6210\u3059\u308b\u3060\u3051\u3067\u5341\u5206\u3067\u3059\u3002\u6700\u7d42\u7684\u306aSpring\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 servlet-context.xml\u306e\u30b3\u30fc\u30c9:<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;beans:beans xmlns=\"https:\/\/www.springframework.org\/schema\/mvc\"\r\n\txmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:beans=\"https:\/\/www.springframework.org\/schema\/beans\"\r\n\txmlns:context=\"https:\/\/www.springframework.org\/schema\/context\"\r\n\txsi:schemaLocation=\"https:\/\/www.springframework.org\/schema\/mvc https:\/\/www.springframework.org\/schema\/mvc\/spring-mvc.xsd\r\n\t\thttps:\/\/www.springframework.org\/schema\/beans https:\/\/www.springframework.org\/schema\/beans\/spring-beans.xsd\r\n\t\thttps:\/\/www.springframework.org\/schema\/context https:\/\/www.springframework.org\/schema\/context\/spring-context.xsd\"&gt;\r\n\r\n\t&lt;!-- DispatcherServlet Context: defines this servlet's request-processing \r\n\t\tinfrastructure --&gt;\r\n\r\n\t&lt;!-- Enables the Spring MVC @Controller programming model --&gt;\r\n\t&lt;annotation-driven \/&gt;\r\n\r\n\t&lt;!-- Handles HTTP GET requests for \/resources\/** by efficiently serving \r\n\t\tup static resources in the ${webappRoot}\/resources directory --&gt;\r\n\t&lt;resources mapping=\"\/**\" location=\"\/\" \/&gt;\r\n\r\n\t&lt;!-- Resolves views selected for rendering by @Controllers to .jsp resources \r\n\t\tin the \/WEB-INF\/views directory --&gt;\r\n\t&lt;beans:bean\r\n\t\tclass=\"org.springframework.web.servlet.view.InternalResourceViewResolver\"&gt;\r\n\t\t&lt;beans:property name=\"prefix\" value=\"\/WEB-INF\/views\/\" \/&gt;\r\n\t\t&lt;beans:property name=\"suffix\" value=\".jsp\" \/&gt;\r\n\t&lt;\/beans:bean&gt;\r\n\r\n\t&lt;beans:bean id=\"multipartResolver\"\r\n\t\tclass=\"org.springframework.web.multipart.commons.CommonsMultipartResolver\"&gt;\r\n\r\n\t\t &lt;!-- setting maximum upload size --&gt;\r\n\t\t&lt;beans:property name=\"maxUploadSize\" value=\"100000\" \/&gt;\r\n\r\n\t&lt;\/beans:bean&gt;\r\n\r\n\t&lt;context:component-scan base-package=\"com.scdev.spring.controller\" \/&gt;\r\n\r\n&lt;\/beans:beans&gt;\r\n<\/code><\/pre>\n<p>multipartResolver\u3068\u3044\u3046\u540d\u524d\u306eMultipartResolver\u5909\u6570\u304c\u4ee5\u4e0b\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u5b9a\u7fa9\u3055\u308c\u3001\u521d\u671f\u5316\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u3001DispatcherServlet\u30af\u30e9\u30b9\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u898b\u308c\u3070\u308f\u304b\u308b\u3002\u307e\u305f\u3001maxUploadSize\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3001multipartResolver\u30d3\u30fc\u30f3\u306b\u6700\u5927\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b5\u30a4\u30ba\u5236\u9650\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>private void initMultipartResolver(ApplicationContext context)\r\n  {\r\n    try\r\n    {\r\n      this.multipartResolver = ((MultipartResolver)context.getBean(\"multipartResolver\", MultipartResolver.class));\r\n      if (this.logger.isDebugEnabled()) {\r\n        this.logger.debug(\"Using MultipartResolver [\" + this.multipartResolver + \"]\");\r\n      }\r\n    }\r\n    catch (NoSuchBeanDefinitionException ex)\r\n    {\r\n      this.multipartResolver = null;\r\n      if (this.logger.isDebugEnabled())\r\n        this.logger.debug(\"Unable to locate MultipartResolver with name 'multipartResolver': no multipart request handling provided\");\r\n    }\r\n  }\r\n<\/code><\/pre>\n<p>\u3053\u306e\u69cb\u6210\u3067\u306f\u3001multipart\/form-data\u3068\u3057\u3066enctype\u3092\u6301\u3064\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3001Controller\u30af\u30e9\u30b9\u306b\u6e21\u3055\u308c\u308b\u524d\u306b\u3001multipartResolver\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u6625\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30af\u30e9\u30b9<\/h3>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30af\u30e9\u30b9\u30b3\u30fc\u30c9\u306f\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u3042\u308a\u3001uploadFile \u3068 uploadMultipleFile \u306e\u305f\u3081\u306e\u30cf\u30f3\u30c9\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002FileUploadController.java \u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.spring.controller;\r\n\r\nimport java.io.BufferedOutputStream;\r\nimport java.io.File;\r\nimport java.io.FileOutputStream;\r\n\r\nimport org.slf4j.Logger;\r\nimport org.slf4j.LoggerFactory;\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.bind.annotation.ResponseBody;\r\nimport org.springframework.web.multipart.MultipartFile;\r\n\r\n\/**\r\n * Handles requests for the application file upload requests\r\n *\/\r\n@Controller\r\npublic class FileUploadController {\r\n\r\n\tprivate static final Logger logger = LoggerFactory\r\n\t\t\t.getLogger(FileUploadController.class);\r\n\r\n\t\/**\r\n\t * Upload single file using Spring Controller\r\n\t *\/\r\n\t@RequestMapping(value = \"\/uploadFile\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody\r\n\tString uploadFileHandler(@RequestParam(\"name\") String name,\r\n\t\t\t@RequestParam(\"file\") MultipartFile file) {\r\n\r\n\t\tif (!file.isEmpty()) {\r\n\t\t\ttry {\r\n\t\t\t\tbyte[] bytes = file.getBytes();\r\n\r\n\t\t\t\t\/\/ Creating the directory to store file\r\n\t\t\t\tString rootPath = System.getProperty(\"catalina.home\");\r\n\t\t\t\tFile dir = new File(rootPath + File.separator + \"tmpFiles\");\r\n\t\t\t\tif (!dir.exists())\r\n\t\t\t\t\tdir.mkdirs();\r\n\r\n\t\t\t\t\/\/ Create the file on server\r\n\t\t\t\tFile serverFile = new File(dir.getAbsolutePath()\r\n\t\t\t\t\t\t+ File.separator + name);\r\n\t\t\t\tBufferedOutputStream stream = new BufferedOutputStream(\r\n\t\t\t\t\t\tnew FileOutputStream(serverFile));\r\n\t\t\t\tstream.write(bytes);\r\n\t\t\t\tstream.close();\r\n\r\n\t\t\t\tlogger.info(\"Server File Location=\"\r\n\t\t\t\t\t\t+ serverFile.getAbsolutePath());\r\n\r\n\t\t\t\treturn \"You successfully uploaded file=\" + name;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\treturn \"You failed to upload \" + name + \" =&gt; \" + e.getMessage();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn \"You failed to upload \" + name\r\n\t\t\t\t\t+ \" because the file was empty.\";\r\n\t\t}\r\n\t}\r\n\r\n\t\/**\r\n\t * Upload multiple file using Spring Controller\r\n\t *\/\r\n\t@RequestMapping(value = \"\/uploadMultipleFile\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody\r\n\tString uploadMultipleFileHandler(@RequestParam(\"name\") String[] names,\r\n\t\t\t@RequestParam(\"file\") MultipartFile[] files) {\r\n\r\n\t\tif (files.length != names.length)\r\n\t\t\treturn \"Mandatory information missing\";\r\n\r\n\t\tString message = \"\";\r\n\t\tfor (int i = 0; i &lt; files.length; i++) {\r\n\t\t\tMultipartFile file = files[i];\r\n\t\t\tString name = names[i];\r\n\t\t\ttry {\r\n\t\t\t\tbyte[] bytes = file.getBytes();\r\n\r\n\t\t\t\t\/\/ Creating the directory to store file\r\n\t\t\t\tString rootPath = System.getProperty(\"catalina.home\");\r\n\t\t\t\tFile dir = new File(rootPath + File.separator + \"tmpFiles\");\r\n\t\t\t\tif (!dir.exists())\r\n\t\t\t\t\tdir.mkdirs();\r\n\r\n\t\t\t\t\/\/ Create the file on server\r\n\t\t\t\tFile serverFile = new File(dir.getAbsolutePath()\r\n\t\t\t\t\t\t+ File.separator + name);\r\n\t\t\t\tBufferedOutputStream stream = new BufferedOutputStream(\r\n\t\t\t\t\t\tnew FileOutputStream(serverFile));\r\n\t\t\t\tstream.write(bytes);\r\n\t\t\t\tstream.close();\r\n\r\n\t\t\t\tlogger.info(\"Server File Location=\"\r\n\t\t\t\t\t\t+ serverFile.getAbsolutePath());\r\n\r\n\t\t\t\tmessage = message + \"You successfully uploaded file=\" + name\r\n\t\t\t\t\t\t+ \"&lt;br \/&gt;\";\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\treturn \"You failed to upload \" + name + \" =&gt; \" + e.getMessage();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn message;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>Spring\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u7528\u306b\u6ce8\u610f\u3057\u3001\u79c1\u305f\u3061\u306e\u751f\u6d3b\u3092\u697d\u306b\u3057\u3001\u30b3\u30fc\u30c9\u304c\u3088\u308a\u8aad\u307f\u3084\u3059\u304f\u306a\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002uploadFileHandler\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b7\u30ca\u30ea\u30aa\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u304c\u3001uploadMultipleFileHandler\u30e1\u30bd\u30c3\u30c9\u306f\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30b7\u30ca\u30ea\u30aa\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u3001\u4e21\u65b9\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u5358\u4e00\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4eca\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092WAR\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u3001Tomcat\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u306b\u5c55\u958b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<h2>Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b<\/h2>\n<p>\u30b5\u30fc\u30d0\u30fc\u30ed\u30b0\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308c\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4fdd\u5b58\u3055\u308c\u305f\u5834\u6240\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30ea\u30f3\u30af\u304b\u3089\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u305d\u308c\u3092\u64cd\u4f5c\u3057\u3066\u3055\u3089\u306b\u5b66\u7fd2\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30b9\u30d7\u30ea\u30f3\u30b0\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\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>\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f\u3001\u3069\u3093\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3082\u975e\u5e38\u306b\u4e00\u822c\u7684\u306a\u30bf\u30b9\u30af\u3067\u3059\u3002\u4ee5\u524d\u306fServlet\u3068Struts2\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u65b9\u6cd5\u3092\u898b\u3066\u304d\u307e\u3057\u305f\u3002\u4eca\u65e5\u306f\u3001Spring\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u3064\u3044\u3066\u5b66\u3073 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-344","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\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\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\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\" \/>\n<meta property=\"og:description\" content=\"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\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\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-05T17:03:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T13:50:25+00:00\" \/>\n<meta name=\"author\" content=\"\u512a\u6597, \u671d\u967d\" \/>\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=\"\u512a\u6597, \u671d\u967d\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"21\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%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"name\":\"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-09-05T17:03:30+00:00\",\"dateModified\":\"2025-07-31T13:50:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\"},\"description\":\"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\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%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &#8211; \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\"}]},{\"@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\/cab7534c71201607a41f395de14d7d28\",\"name\":\"\u512a\u6597, \u671d\u967d\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"caption\":\"\u512a\u6597, \u671d\u967d\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb - Blog - Silicon Cloud","description":"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\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\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_locale":"ja_JP","og_type":"article","og_title":"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb","og_description":"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\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\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-09-05T17:03:30+00:00","article_modified_time":"2025-07-31T13:50:25+00:00","author":"\u512a\u6597, \u671d\u967d","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u512a\u6597, \u671d\u967d","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"21\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","name":"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-09-05T17:03:30+00:00","dateModified":"2025-07-31T13:50:25+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28"},"description":"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb\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%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Spring MVC\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4f8b\u984c\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &#8211; \u5358\u4e00\u30d5\u30a1\u30a4\u30eb\u3068\u8907\u6570\u30d5\u30a1\u30a4\u30eb"}]},{"@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\/cab7534c71201607a41f395de14d7d28","name":"\u512a\u6597, \u671d\u967d","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","caption":"\u512a\u6597, \u671d\u967d"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e4%be%8b%e9%a1%8c%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/344","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":39399,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/344\/revisions\/39399"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}