{"id":789,"date":"2022-07-22T09:00:07","date_gmt":"2022-08-16T03:32:48","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/spring-mvc-%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"},"modified":"2025-08-01T02:30:23","modified_gmt":"2025-07-31T17:30:23","slug":"spring-mvc-%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%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","title":{"rendered":"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"},"content":{"rendered":"<p>\u3053\u306eSpring MVC\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Spring Tool Suite\u3092\u4f7f\u7528\u3057\u3066Spring MVC\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002Spring MVC\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u3001Java\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6625\u306eMVC<\/h2>\n<p>\u30b9\u30c8\u30e9\u30c3\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u540c\u69d8\u306b\u3001Spring MVC\u3082Java EE\u306e\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u3068JSP\u6280\u8853\u306b\u57fa\u3065\u3044\u3066\u304a\u308a\u3001\u30e2\u30c7\u30eb\u30fb\u30d3\u30e5\u30fc\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6625\u306eMVC\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/h2>\n<p>\u4ee5\u524d\u306bSpring\u306e\u4f9d\u5b58\u6027\u6ce8\u5165\u306e\u4ed5\u7d44\u307f\u3092\u898b\u305f\u3053\u3068\u304c\u3042\u308a\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306fSpring MVC\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30f3\u30d7\u30eb\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002Spring\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u958b\u767a\u306b\u306fEclipse\u307e\u305f\u306fIntelliJ IDE\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001SpringSource\u306fEclipse\u30d9\u30fc\u30b9\u306e\u7d71\u5408\u958b\u767a\u74b0\u5883\u3067\u3042\u308bSpring Tool Suite\uff08STS\uff09\u3092\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u305d\u306e\u4e2d\u306b\u306fApache Tomcat\u30b3\u30f3\u30c6\u30ca\u3092\u30d9\u30fc\u30b9\u306b\u3057\u305fVMware vFabric tc Server\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u304a\u308a\u3001Spring\u30d9\u30fc\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6700\u9069\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002Spring MVC\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3084\u4ed6\u306e\u5c06\u6765\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001STS\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u958b\u767a\u8005\u306e\u751f\u6d3b\u3092\u7c21\u5358\u306b\u3057\u3066\u304f\u308c\u308b\u4ee5\u4e0b\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Support for creating skeletal Spring applications (MVC, Rest, Batch etc), good for starting the project from scratch. We will soon see in this spring MVC tutorial how easy it is to create a Spring MVC project.<\/li>\n<li>Provides useful features such as creating Spring Configuration files, parsing config files and classes to provide useful information about them.<\/li>\n<li>Automatic validation of Spring application<\/li>\n<li>Refactoring support to easily make project changes, the changes get reflected in config files too.<\/li>\n<li>Code assist for not only classes but configuration files too, I like this feature a lot because most of the times we need to know what we can use and its details.<\/li>\n<li>Best support for Aspect Oriented Programming (AOP) through the integration of AspectJ.<\/li>\n<\/ul>\n<p>STS\u306e\u63d0\u4f9b\u3059\u308b\u3059\u3079\u3066\u306e\u6a5f\u80fd\u3092\u898b\u308b\u3068\u3001\u79c1\u306f\u305d\u308c\u306b\u60f9\u304b\u308c\u3001Spring\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u6c7a\u3081\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u4eca\u307e\u3067\u975e\u5e38\u306b\u6e80\u8db3\u3057\u3066\u3044\u307e\u3059\u3002STS\u516c\u5f0f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u304b\u3089STS\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u79c1\u306fEclipse 4.3.1\u30ea\u30ea\u30fc\u30b9\u306b\u57fa\u3065\u3044\u3066\u3044\u308bSTS 3.4.0.RELEASE\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3057STS\u3092\u4f7f\u3044\u305f\u304f\u306a\u3044\u3001\u65e2\u5b58\u306eEclipse\u3067\u305d\u306e\u6a5f\u80fd\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u306f\u3001Eclipse Marketplace\u304b\u3089\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u753b\u50cf\u3092\u53c2\u8003\u306b\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305f\u3081\u306b\u6b63\u3057\u3044STS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306fEclipse Kepler\u5411\u3051\u3067\u3059\u3002\u3082\u3057SpringSource\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3044\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u3001Tomcat\u3084JBoss\u306a\u3069\u306e\u4ed6\u306eJava EE\u30b3\u30f3\u30c6\u30ca\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001STS\u306b\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001WAR\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u3066\u5225\u306eTomcat\u30b5\u30fc\u30d0\u30fc\u3067\u30c6\u30b9\u30c8\u3057\u305f\u3089\u3046\u307e\u304f\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002\u3055\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u3068IDE\u306e\u6e96\u5099\u304c\u6574\u3063\u305f\u306e\u3067\u3001\u3055\u3042\u3001\u6700\u521d\u306eSpring MVC\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u624b\u9806\u306f\u3001STS\u304a\u3088\u3073STS\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6301\u3064Eclipse\u306e\u4e21\u65b9\u306b\u6709\u52b9\u3067\u3059\u3002<\/p>\n<h3>STS\u307e\u305f\u306fEclipse\u3067Spring MVC\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3002<\/h3>\n<p>\u30b9\u30c6\u30c3\u30d71\uff1a\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u65b0\u3057\u3044Spring\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30b9\u30c6\u30c3\u30d72\uff1a\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u3001\u300cSpringMVCExample\u300d\u3068\u3044\u3046\u540d\u524d\u3092\u4ed8\u3051\u3066\u3001\u300cSpring MVC\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u3068\u3057\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u521d\u3081\u3066\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001STS\u304cSpringSource\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u4efb\u610f\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4efb\u610f\u306e\u4f5c\u696d\u30bb\u30c3\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30b9\u30c6\u30c3\u30d73\uff1a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3068\u3001\u6b21\u306e\u753b\u9762\u3067\u6700\u4e0a\u4f4d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306fSpring\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30d9\u30fc\u30b9\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30b9\u30c6\u30c3\u30d74\uff1aSpring MVC\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u3088\u3063\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002User.java\u30af\u30e9\u30b9\u3084login.jsp\u3001user.jsp\u30d5\u30a1\u30a4\u30eb\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u3066\u3082\u5fc3\u914d\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3089\u306f\u5f8c\u304b\u3089\u79c1\u304c\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3084\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001Maven\/Update Project\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u306e\u753b\u50cf\u3092\u53c2\u7167\u3057\u3001\u300cSnapshots\/Releases\u306e\u5f37\u5236\u66f4\u65b0\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5168\u4f53\u7684\u306b\u898b\u308b\u3068\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u4ed6\u306eMaven\u30d9\u30fc\u30b9\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u540c\u3058\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002\u3053\u308c\u304b\u3089\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7570\u306a\u308b\u90e8\u5206\u3092\u5206\u6790\u3057\u3001\u5c11\u3057\u62e1\u5f35\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>Spring MVC\u306e\u4f9d\u5b58\u95a2\u4fc2<\/h3>\n<p>\u79c1\u305f\u3061\u306e\u751f\u6210\u3055\u308c\u305fpom.xml\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;project xmlns=\"https:\/\/maven.apache.org\/POM\/4.0.0\" xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"https:\/\/maven.apache.org\/POM\/4.0.0 https:\/\/maven.apache.org\/maven-v4_0_0.xsd\"&gt;\r\n\t&lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;\r\n\t&lt;groupId&gt;com.scdev&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;SpringMVCExample&lt;\/artifactId&gt;\r\n\t&lt;name&gt;SpringMVCExample&lt;\/name&gt;\r\n\t&lt;packaging&gt;war&lt;\/packaging&gt;\r\n\t&lt;version&gt;1.0.0-BUILD-SNAPSHOT&lt;\/version&gt;\r\n\t&lt;properties&gt;\r\n\t\t&lt;java-version&gt;1.6&lt;\/java-version&gt;\r\n\t\t&lt;org.springframework-version&gt;4.0.0.RELEASE&lt;\/org.springframework-version&gt;\r\n\t\t&lt;org.aspectj-version&gt;1.7.4&lt;\/org.aspectj-version&gt;\r\n\t\t&lt;org.slf4j-version&gt;1.7.5&lt;\/org.slf4j-version&gt;\r\n\t&lt;\/properties&gt;\r\n\t&lt;dependencies&gt;\r\n\t\t&lt;!-- Spring --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.springframework&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;spring-context&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${org.springframework-version}&lt;\/version&gt;\r\n\t\t\t&lt;exclusions&gt;\r\n\t\t\t\t&lt;!-- Exclude Commons Logging in favor of SLF4j --&gt;\r\n\t\t\t\t&lt;exclusion&gt;\r\n\t\t\t\t\t&lt;groupId&gt;commons-logging&lt;\/groupId&gt;\r\n\t\t\t\t\t&lt;artifactId&gt;commons-logging&lt;\/artifactId&gt;\r\n\t\t\t\t &lt;\/exclusion&gt;\r\n\t\t\t&lt;\/exclusions&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.springframework&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;spring-webmvc&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${org.springframework-version}&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t\t\t\r\n\t\t&lt;!-- AspectJ --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.aspectj&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;aspectjrt&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${org.aspectj-version}&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\t\r\n\t\t\r\n\t\t&lt;!-- Logging --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.slf4j&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;slf4j-api&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${org.slf4j-version}&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.slf4j&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jcl-over-slf4j&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${org.slf4j-version}&lt;\/version&gt;\r\n\t\t\t&lt;scope&gt;runtime&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.slf4j&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;slf4j-log4j12&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;${org.slf4j-version}&lt;\/version&gt;\r\n\t\t\t&lt;scope&gt;runtime&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;log4j&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;log4j&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;1.2.15&lt;\/version&gt;\r\n\t\t\t&lt;exclusions&gt;\r\n\t\t\t\t&lt;exclusion&gt;\r\n\t\t\t\t\t&lt;groupId&gt;javax.mail&lt;\/groupId&gt;\r\n\t\t\t\t\t&lt;artifactId&gt;mail&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;\/exclusion&gt;\r\n\t\t\t\t&lt;exclusion&gt;\r\n\t\t\t\t\t&lt;groupId&gt;javax.jms&lt;\/groupId&gt;\r\n\t\t\t\t\t&lt;artifactId&gt;jms&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;\/exclusion&gt;\r\n\t\t\t\t&lt;exclusion&gt;\r\n\t\t\t\t\t&lt;groupId&gt;com.sun.jdmk&lt;\/groupId&gt;\r\n\t\t\t\t\t&lt;artifactId&gt;jmxtools&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;\/exclusion&gt;\r\n\t\t\t\t&lt;exclusion&gt;\r\n\t\t\t\t\t&lt;groupId&gt;com.sun.jmx&lt;\/groupId&gt;\r\n\t\t\t\t\t&lt;artifactId&gt;jmxri&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;\/exclusion&gt;\r\n\t\t\t&lt;\/exclusions&gt;\r\n\t\t\t&lt;scope&gt;runtime&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\r\n\t\t&lt;!-- @Inject --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;javax.inject&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;javax.inject&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;1&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t\t\t\r\n\t\t&lt;!-- Servlet --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;javax.servlet&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;servlet-api&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;2.5&lt;\/version&gt;\r\n\t\t\t&lt;scope&gt;provided&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;javax.servlet.jsp&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jsp-api&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;2.1&lt;\/version&gt;\r\n\t\t\t&lt;scope&gt;provided&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;javax.servlet&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jstl&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;1.2&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\r\n\t\t&lt;!-- Test --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;junit&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;junit&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;4.7&lt;\/version&gt;\r\n\t\t\t&lt;scope&gt;test&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;        \r\n\t&lt;\/dependencies&gt;\r\n    &lt;build&gt;\r\n        &lt;plugins&gt;\r\n            &lt;plugin&gt;\r\n                &lt;artifactId&gt;maven-eclipse-plugin&lt;\/artifactId&gt;\r\n                &lt;version&gt;2.9&lt;\/version&gt;\r\n                &lt;configuration&gt;\r\n                    &lt;additionalProjectnatures&gt;\r\n                        &lt;projectnature&gt;org.springframework.ide.eclipse.core.springnature&lt;\/projectnature&gt;\r\n                    &lt;\/additionalProjectnatures&gt;\r\n                    &lt;additionalBuildcommands&gt;\r\n                        &lt;buildcommand&gt;org.springframework.ide.eclipse.core.springbuilder&lt;\/buildcommand&gt;\r\n                    &lt;\/additionalBuildcommands&gt;\r\n                    &lt;downloadSources&gt;true&lt;\/downloadSources&gt;\r\n                    &lt;downloadJavadocs&gt;true&lt;\/downloadJavadocs&gt;\r\n                &lt;\/configuration&gt;\r\n            &lt;\/plugin&gt;\r\n            &lt;plugin&gt;\r\n                &lt;groupId&gt;org.apache.maven.plugins&lt;\/groupId&gt;\r\n                &lt;artifactId&gt;maven-compiler-plugin&lt;\/artifactId&gt;\r\n                &lt;version&gt;2.5.1&lt;\/version&gt;\r\n                &lt;configuration&gt;\r\n                    &lt;source&gt;1.6&lt;\/source&gt;\r\n                    &lt;target&gt;1.6&lt;\/target&gt;\r\n                    &lt;compilerArgument&gt;-Xlint:all&lt;\/compilerArgument&gt;\r\n                    &lt;showWarnings&gt;true&lt;\/showWarnings&gt;\r\n                    &lt;showDeprecation&gt;true&lt;\/showDeprecation&gt;\r\n                &lt;\/configuration&gt;\r\n            &lt;\/plugin&gt;\r\n            &lt;plugin&gt;\r\n                &lt;groupId&gt;org.codehaus.mojo&lt;\/groupId&gt;\r\n                &lt;artifactId&gt;exec-maven-plugin&lt;\/artifactId&gt;\r\n                &lt;version&gt;1.2.1&lt;\/version&gt;\r\n                &lt;configuration&gt;\r\n                    &lt;mainClass&gt;org.test.int1.Main&lt;\/mainClass&gt;\r\n                &lt;\/configuration&gt;\r\n            &lt;\/plugin&gt;\r\n        &lt;\/plugins&gt;\r\n    &lt;\/build&gt;\r\n&lt;\/project&gt;\r\n<\/code><\/pre>\n<p>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7528\u306eartifactId\u306fservlet-context\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u4ed6\u306e\u3082\u306e\u306b\u5909\u66f4\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002Spring Framework\u3001AspectJ\u3001SLF4j\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u306f\u7570\u306a\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u672c\u65e5\u306e\u6700\u65b0\u5b89\u5b9a\u7248\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002\u79c1\u304c\u95a2\u5fc3\u3092\u6301\u3063\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f9d\u5b58\u95a2\u4fc2\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>spring-context: Spring Core dependency. Notice the exclusion of commons logging in favor of SLF4J.<\/li>\n<li>spring-webmvc: Spring artifact for MVC support<\/li>\n<li>aspectjrt: AspectJ API reference<\/li>\n<li>SLF4J and Log4j: For logging purposes, Spring is very easy to configure for log4j or Java Logging API because of SLF4J integration.<\/li>\n<li>javax.inject &#8211; JSR330 API for dependency injection<\/li>\n<\/ul>\n<p>\u30b9\u30bf\u30fc\u30bf\u30fc\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001Servlet\u3001JSP\u3001JSTL\u3001JUnit API\u306a\u3069\u306e\u4ed6\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u3089\u306f\u898b\u9003\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &#8211; Log4j \u8a2d\u5b9a<\/h3>\n<p>\u751f\u6210\u3055\u308c\u305flog4j.xml\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;!DOCTYPE log4j:configuration PUBLIC \"-\/\/APACHE\/\/DTD LOG4J 1.2\/\/EN\" \"log4j.dtd\"&gt;\r\n&lt;log4j:configuration xmlns:log4j=\"https:\/\/jakarta.apache.org\/log4j\/\"&gt;\r\n\r\n\t&lt;!-- Appenders --&gt;\r\n\t&lt;appender name=\"console\" class=\"org.apache.log4j.ConsoleAppender\"&gt;\r\n\t\t&lt;param name=\"Target\" value=\"System.out\" \/&gt;\r\n\t\t&lt;layout class=\"org.apache.log4j.PatternLayout\"&gt;\r\n\t\t\t&lt;param name=\"ConversionPattern\" value=\"%-5p: %c - %m%n\" \/&gt;\r\n\t\t&lt;\/layout&gt;\r\n\t&lt;\/appender&gt;\r\n\t\r\n\t&lt;!-- Application Loggers --&gt;\r\n\t&lt;logger name=\"com.scdev.spring\"&gt;\r\n\t\t&lt;level value=\"info\" \/&gt;\r\n\t&lt;\/logger&gt;\r\n\t\r\n\t&lt;!-- 3rdparty Loggers --&gt;\r\n\t&lt;logger name=\"org.springframework.core\"&gt;\r\n\t\t&lt;level value=\"info\" \/&gt;\r\n\t&lt;\/logger&gt;\r\n\t\r\n\t&lt;logger name=\"org.springframework.beans\"&gt;\r\n\t\t&lt;level value=\"info\" \/&gt;\r\n\t&lt;\/logger&gt;\r\n\t\r\n\t&lt;logger name=\"org.springframework.context\"&gt;\r\n\t\t&lt;level value=\"info\" \/&gt;\r\n\t&lt;\/logger&gt;\r\n\r\n\t&lt;logger name=\"org.springframework.web\"&gt;\r\n\t\t&lt;level value=\"info\" \/&gt;\r\n\t&lt;\/logger&gt;\r\n\r\n\t&lt;!-- Root Logger --&gt;\r\n\t&lt;root&gt;\r\n\t\t&lt;priority value=\"warn\" \/&gt;\r\n\t\t&lt;appender-ref ref=\"console\" \/&gt;\r\n\t&lt;\/root&gt;\r\n\t\r\n&lt;\/log4j:configuration&gt;\r\n<\/code><\/pre>\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u3059\u3079\u3066\u306e\u5185\u5bb9\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3001\u7c21\u5358\u306b\u30a2\u30da\u30f3\u30c0\u3092\u8ffd\u52a0\u3057\u3066\u30ed\u30b0\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u3010\u65e5\u672c\u8a9e\u3011<br \/>\n\u300cSpring MVC\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &#8211; \u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u8a2d\u5b9a\u300d<\/h3>\n<p>\u79c1\u305f\u3061\u306eweb.xml\u3092\u898b\u3066\u3001\u5206\u6790\u3057\u307e\u3057\u3087\u3046\u3002 (Watashitachi no web.xml wo mite, bunseki shimashou.)<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;web-app version=\"2.5\" xmlns=\"https:\/\/java.sun.com\/xml\/ns\/javaee\"\r\n\txmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"https:\/\/java.sun.com\/xml\/ns\/javaee https:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_2_5.xsd\"&gt;\r\n\r\n\t&lt;!-- The definition of the Root Spring Container shared by all Servlets and Filters --&gt;\r\n\t&lt;context-param&gt;\r\n\t\t&lt;param-name&gt;contextConfigLocation&lt;\/param-name&gt;\r\n\t\t&lt;param-value&gt;\/WEB-INF\/spring\/root-context.xml&lt;\/param-value&gt;\r\n\t&lt;\/context-param&gt;\r\n\t\r\n\t&lt;!-- Creates the Spring Container shared by all Servlets and Filters --&gt;\r\n\t&lt;listener&gt;\r\n\t\t&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;\/listener-class&gt;\r\n\t&lt;\/listener&gt;\r\n\r\n\t&lt;!-- Processes application requests --&gt;\r\n\t&lt;servlet&gt;\r\n\t\t&lt;servlet-name&gt;appServlet&lt;\/servlet-name&gt;\r\n\t\t&lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;\/servlet-class&gt;\r\n\t\t&lt;init-param&gt;\r\n\t\t\t&lt;param-name&gt;contextConfigLocation&lt;\/param-name&gt;\r\n\t\t\t&lt;param-value&gt;\/WEB-INF\/spring\/appServlet\/servlet-context.xml&lt;\/param-value&gt;\r\n\t\t&lt;\/init-param&gt;\r\n\t\t&lt;load-on-startup&gt;1&lt;\/load-on-startup&gt;\r\n\t&lt;\/servlet&gt;\r\n\t\t\r\n\t&lt;servlet-mapping&gt;\r\n\t\t&lt;servlet-name&gt;appServlet&lt;\/servlet-name&gt;\r\n\t\t&lt;url-pattern&gt;\/&lt;\/url-pattern&gt;\r\n\t&lt;\/servlet-mapping&gt;\r\n\r\n&lt;\/web-app&gt;\r\n<\/code><\/pre>\n<p>ContextLoaderListener\u306fApplicationContext\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092ServletContext\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306b\u7d50\u3073\u3064\u3051\u3001ApplicationContext\u306e\u81ea\u52d5\u4f5c\u6210\u3092\u884c\u3044\u307e\u3059\u3002ApplicationContext\u306fSpring\u306e\u30d3\u30fc\u30f3\u306e\u5834\u6240\u3067\u3042\u308a\u3001contextConfigLocation\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u901a\u3058\u3066\u305d\u306e\u8a2d\u5b9a\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002root-context.xml\u30d5\u30a1\u30a4\u30eb\u306fWebApplicationContext\u306e\u8a2d\u5b9a\u8a73\u7d30\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002DispatcherServlet\u306fSpring MVC\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30af\u30e9\u30b9\u3067\u3042\u308a\u3001\u3059\u3079\u3066\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3053\u306e\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002\u8a2d\u5b9a\u306fservlet-context.xml\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &#8211; \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>\u30eb\u30fc\u30c8\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8.xml\u30d5\u30a1\u30a4\u30eb<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;beans xmlns=\"https:\/\/www.springframework.org\/schema\/beans\"\r\n\txmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"https:\/\/www.springframework.org\/schema\/beans https:\/\/www.springframework.org\/schema\/beans\/spring-beans.xsd\"&gt;\r\n\t\r\n\t&lt;!-- Root Context: defines shared resources visible to all other web components --&gt;\r\n\t\t\r\n&lt;\/beans&gt;\r\n<\/code><\/pre>\n<p>\u4eca\u306e\u3068\u3053\u308d\u3001\u3053\u3053\u3067\u5171\u6709\u3055\u308c\u308b\u30d3\u30fc\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002servlet-context.xml\u306e\u30b3\u30fc\u30c9\u306f\u307e\u3060\u4f55\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/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\"\r\n\txmlns: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 infrastructure --&gt;\r\n\t\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 up static resources in the ${webappRoot}\/resources directory --&gt;\r\n\t&lt;resources mapping=\"\/resources\/**\" location=\"\/resources\/\" \/&gt;\r\n\r\n\t&lt;!-- Resolves views selected for rendering by @Controllers to .jsp resources in the \/WEB-INF\/views directory --&gt;\r\n\t&lt;beans:bean class=\"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\t\r\n\t&lt;context:component-scan base-package=\"com.scdev.spring\" \/&gt;\t\r\n\t\r\n&lt;\/beans:beans&gt;\r\n<\/code><\/pre>\n<p>\u3053\u308c\u304c\u6a19\u6e96\u306eSpring\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8868\u793a\u65b9\u6cd5\u3067\u3059\u3002\u81ea\u5206\u3067\u3053\u308c\u3092\u66f8\u304f\u3053\u3068\u3092\u60f3\u50cf\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3059\u308c\u3070\u3001STS\u30c4\u30fc\u30eb\u304c\u597d\u304d\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002annotation-driven\u8981\u7d20\u306f\u3001Controller\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u306b\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u3092\u77e5\u3089\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002resources\u8981\u7d20\u306f\u3001Spring\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4ecb\u3055\u305a\u306b\u53d6\u5f97\u3057\u305f\u304f\u306a\u3044\u9759\u7684\u30d5\u30a1\u30a4\u30eb\uff08\u753b\u50cf\u3001HTML\u30da\u30fc\u30b8\u306a\u3069\uff09\u3092\u914d\u7f6e\u3059\u308b\u5834\u6240\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002InternalResourceViewResolver\u306f\u30d3\u30e5\u30fc\u30ea\u30be\u30eb\u30d0\u3067\u3042\u308a\u3001prefix\u304a\u3088\u3073suffix\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4ecb\u3057\u3066\u30d3\u30e5\u30fc\u30da\u30fc\u30b8\u306e\u5834\u6240\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u3059\u3079\u3066\u306eJSP\u30da\u30fc\u30b8\u306f\/WEB-INF\/views\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002context:component-scan\u8981\u7d20\u306f\u3001Controller\u30af\u30e9\u30b9\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5834\u6240\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u6642\u306b\u6307\u5b9a\u3055\u308c\u305f\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5024\u3092\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u3082\u540c\u3058\u5024\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30d7\u30ea\u30f3\u30b0MVC\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30af\u30e9\u30b9<\/h3>\n<p>\u30db\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306f\u3001home()\u30e1\u30bd\u30c3\u30c9\u3068\u3068\u3082\u306b\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u304c\u3001\u79c1\u306floginPage()\u30e1\u30bd\u30c3\u30c9\u3068login()\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u5c11\u3057\u62e1\u5f35\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.spring;\r\n\r\nimport java.text.DateFormat;\r\nimport java.util.Date;\r\nimport java.util.Locale;\r\n\r\nimport org.slf4j.Logger;\r\nimport org.slf4j.LoggerFactory;\r\nimport org.springframework.stereotype.Controller;\r\nimport org.springframework.ui.Model;\r\nimport org.springframework.validation.annotation.Validated;\r\nimport org.springframework.web.bind.annotation.RequestMapping;\r\nimport org.springframework.web.bind.annotation.RequestMethod;\r\n\r\n\/**\r\n * Handles requests for the application home page.\r\n *\/\r\n@Controller\r\npublic class HomeController {\r\n\t\r\n\tprivate static final Logger logger = LoggerFactory.getLogger(HomeController.class);\r\n\t\r\n\t\/**\r\n\t * Simply selects the home view to render by returning its name.\r\n\t *\/\r\n\t@RequestMapping(value = \"\/\", method = RequestMethod.GET)\r\n\tpublic String home(Locale locale, Model model) {\r\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tDateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);\r\n\t\t\r\n\t\tString formattedDate = dateFormat.format(date);\r\n\t\t\r\n\t\tmodel.addAttribute(\"serverTime\", formattedDate );\r\n\t\t\r\n\t\treturn \"home\";\r\n\t}\r\n\t\r\n\t@RequestMapping(value = \"\/login\", method = RequestMethod.GET)\r\n\tpublic String loginPage(Locale locale, Model model) {\r\n\t\treturn \"login\";\r\n\t}\r\n\t\r\n\t@RequestMapping(value = \"\/home\", method = RequestMethod.POST)\r\n\tpublic String login(@Validated User user, Model model) {\r\n\t\tmodel.addAttribute(\"userName\", user.getUserName());\r\n\t\treturn \"user\";\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>@Controller\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001Web\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30af\u30e9\u30b9\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3059\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002@RequestMapping\u306f\u3001\u30af\u30e9\u30b9\u3068\u30e1\u30bd\u30c3\u30c9\u3068\u5171\u306b\u4f7f\u7528\u3055\u308c\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u7279\u5b9a\u306e\u30cf\u30f3\u30c9\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002\u30cf\u30f3\u30c9\u30e9\u30fc\u30e1\u30bd\u30c3\u30c9\u306fString\u3092\u8fd4\u3059\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306f\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u308b\u30d3\u30e5\u30fc\u30da\u30fc\u30b8\u306e\u540d\u524d\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u7570\u306a\u308b\u6587\u5b57\u5217\u3092\u8fd4\u30593\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308b\u305f\u3081\u3001\u540c\u3058\u540d\u524d\u306eJSP\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002login\uff08\uff09\u30e1\u30bd\u30c3\u30c9\u306fHTTP\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066POST\u3067\u547c\u3073\u51fa\u3055\u308c\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001User\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u3001@Validated\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u691c\u8a3c\u3055\u308c\u308b\u3088\u3046\u306b\u30de\u30fc\u30af\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u306fModel\u304c\u5f15\u6570\u3068\u3057\u3066\u542b\u307e\u308c\u3066\u304a\u308a\u3001JSP\u30ec\u30b9\u30dd\u30f3\u30b9\u30da\u30fc\u30b8\u3067\u5f8c\u3067\u4f7f\u7528\u3059\u308b\u5c5e\u6027\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>Spring MVC\u306e\u30e2\u30c7\u30eb\u30af\u30e9\u30b9<\/h3>\n<p>\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u306e\u5909\u6570\u3092\u4fdd\u6301\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u79c1\u305f\u3061\u306e\u30e6\u30fc\u30b6\u30fc\u30e2\u30c7\u30eb\u30d3\u30fc\u30f3\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.spring;\r\n\r\npublic class User {\r\n\r\n\tprivate String userName;\r\n\r\n\tpublic String getUserName() {\r\n\t\treturn userName;\r\n\t}\r\n\r\n\tpublic void setUserName(String userName) {\r\n\t\tthis.userName = userName;\r\n\t}\r\n\t\r\n}\r\n<\/code><\/pre>\n<p>\u5909\u6570\u540d\u3068\u305d\u306e\u30b2\u30c3\u30bf\u30fc\u30e1\u30bd\u30c3\u30c9\u3068\u30bb\u30c3\u30bf\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u30b7\u30f3\u30d7\u30eb\u306aJava\u306eBean\u3002<\/p>\n<h3>Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &#8211; \u30d3\u30e5\u30fc\u30da\u30fc\u30b8<\/h3>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306aJSP\u30da\u30fc\u30b8\u304c3\u3064\u3042\u308a\u307e\u3059\u3002home.jsp\u306e\u30b3\u30fc\u30c9:<\/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\t&lt;title&gt;Home&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h1&gt;\r\n\tHello world!  \r\n&lt;\/h1&gt;\r\n\r\n&lt;P&gt;  The time on the server is ${serverTime}. &lt;\/P&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>JSP\u306e\u5f0f\u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u3066\u5c5e\u6027\u5024\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002login.jsp\u306e\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ page language=\"java\" contentType=\"text\/html; charset=UTF-8\"\r\n    pageEncoding=\"UTF-8\"%&gt;\r\n&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=UTF-8\"&gt;\r\n&lt;title&gt;Login Page&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;form action=\"home\" method=\"post\"&gt;\r\n&lt;input type=\"text\" name=\"userName\"&gt;&lt;br&gt;\r\n&lt;input type=\"submit\" value=\"Login\"&gt;\r\n&lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u30e6\u30fc\u30b6\u304cuserName\u3092\u5165\u529b\u3059\u308b\u305f\u3081\u306e\u30b7\u30f3\u30d7\u30eb\u306aJSP\u30da\u30fc\u30b8\u3067\u3059\u3002\u30d5\u30a9\u30fc\u30e0\u306e\u5909\u6570\u540d\u306fUser\u30af\u30e9\u30b9\u306e\u5909\u6570\u540d\u3068\u540c\u3058\u3067\u3059\u3002\u307e\u305f\u3001\u30d5\u30a9\u30fc\u30e0\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u300chome\u300d\u3067\u3042\u308a\u3001\u30e1\u30bd\u30c3\u30c9\u306f\u300cpost\u300d\u3067\u3059\u3002\u660e\u3089\u304b\u306b\u3001\u3053\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306fHomeController\u306elogin()\u30e1\u30bd\u30c3\u30c9\u3067\u51e6\u7406\u3055\u308c\u307e\u3059\u3002user.jsp\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ page language=\"java\" contentType=\"text\/html; charset=UTF-8\"\r\n    pageEncoding=\"UTF-8\"%&gt;\r\n&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=UTF-8\"&gt;\r\n&lt;title&gt;User Home Page&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h3&gt;Hi ${userName}&lt;\/h3&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u30ed\u30b0\u30a4\u30f3\u30e1\u30bd\u30c3\u30c9\u3067\u3053\u306e\u5c5e\u6027\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u3065\u304f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u305f\u3081\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3067\u30e6\u30fc\u30b6\u540d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Spring MVC\u306e\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8<\/h3>\n<p>\u79c1\u305f\u3061\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u5b9f\u884c\u306e\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u306e\u3067\u3001VMware tc Server\u307e\u305f\u306f\u4ed6\u306e\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30b3\u30f3\u30c6\u30ca\u30fc\u3067\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u7d50\u679c\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u304cSpring MVC\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5168\u3066\u3067\u3059\u3002ST\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u3066Spring MVC\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7c21\u5358\u306b\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u30b3\u30fc\u30c9\u30b5\u30a4\u30ba\u3082\u975e\u5e38\u306b\u5c0f\u3055\u304f\u3001\u307b\u3068\u3093\u3069\u306e\u8a2d\u5b9a\u306fSpring MVC\u304c\u51e6\u7406\u3057\u3066\u304f\u308c\u308b\u305f\u3081\u3001\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u306b\u96c6\u4e2d\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u4f8b\u3068\u306a\u308bSpring MVC\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u81ea\u7531\u306b\u64cd\u4f5c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Spring MVC\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306eSpring MVC\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Spring Tool Suite\u3092\u4f7f\u7528\u3057\u3066Spring MVC\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002Spring MVC\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u3001Java\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-789","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 \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\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-\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 \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\" \/>\n<meta property=\"og:description\" content=\"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\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-\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-08-16T03:32:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T17:30:23+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\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=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"43\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%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%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"name\":\"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-08-16T03:32:48+00:00\",\"dateModified\":\"2025-07-31T17:30:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\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%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%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%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 \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\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\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc-%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 \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","description":"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\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-\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_locale":"ja_JP","og_type":"article","og_title":"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb","og_description":"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\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-\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-08-16T03:32:48+00:00","article_modified_time":"2025-07-31T17:30:23+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"43\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc-%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%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","name":"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-08-16T03:32:48+00:00","dateModified":"2025-07-31T17:30:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"Spring MVC \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\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%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%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%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 \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\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\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/spring-mvc-%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\/789","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=789"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/789\/revisions"}],"predecessor-version":[{"id":45038,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/789\/revisions\/45038"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}