{"id":12255,"date":"2016-12-03T09:00:06","date_gmt":"2016-12-03T00:00:06","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=12255"},"modified":"2018-11-14T16:33:44","modified_gmt":"2018-11-14T07:33:44","slug":"start-with-sts-and-spring-boot-3","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2016\/12\/03\/start-with-sts-and-spring-boot-3\/","title":{"rendered":"Spring Tool Suite (STS)\u3068 Spring Boot \u3067\u59cb\u3081\u308b Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\uff08\uff13\uff09"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u68b6\u539f\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306f <a href=\"\/blog\/2016\/11\/30\/techscore-advent-calendar-2016\/\">TECHSCORE Advent Calendar 2016<\/a> \u306e3\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 <\/p>\n<p>\u300cSpring Tool Suite (STS)\u3068 Spring Boot \u3067\u59cb\u3081\u308b Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u300d\u306e\u7b2c3\u56de\u3067\u3059\u3002<br \/>\n3\u56de\u306b\u5206\u3051\u3066\u63b2\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"\/blog\/2016\/11\/22\/start-with-sts-and-spring-boot-1\">\u7b2c1\u56de\uff1aSTS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068 Spring Legacy \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u52d5\u304b\u3059<\/a><\/li>\n<li><a href=\"\/blog\/2016\/11\/25\/start-with-sts-and-spring-boot-2\">\u7b2c2\u56de\uff1aSpring Starter \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u52d5\u304b\u3057\u753b\u9762\u306b Hello World \u3092\u8868\u793a\u3059\u308b<\/a><\/li>\n<li>\u7b2c3\u56de\uff1a\u753b\u9762\u306b\u5165\u529b\u3057\u305f\u5185\u5bb9\u3092\u753b\u9762\u306b\u8868\u793a\u3059\u308b<\/li>\n<\/ul>\n<p><a href=\"https:\/\/projects.spring.io\/spring-boot\/\" target=\"_blank\">Spring Boot<\/a> \u306b\u3064\u3066\u3044\u306f TECHSCORE BLOG \u306e\u8a18\u4e8b\u300c<a href=\"http:\/\/www.techscore.com\/blog\/2014\/05\/01\/spring-boot-introduction\/\" target=\"_blank\">Spring Boot \u5165\u9580<\/a>\u300d\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f Spring Tool Suite (STS) \u3067Spring Starter \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u5185\u3067\u8a2d\u5b9a\u3057\u305f\u30c6\u30ad\u30b9\u30c8 Hello World \u3092\u753b\u9762\u306b\u8868\u793a\u3055\u305b\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u306f\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u753b\u9762\u306e\u30d5\u30a9\u30fc\u30e0\u306b\u5165\u529b\u3057\u305f\u5185\u5bb9\u3092\u9001\u4fe1\u3057\u3066\u753b\u9762\u306b\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<h2>\u3053\u306e\u8a18\u4e8b\u306e\u30b4\u30fc\u30eb<\/h2>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u4f5c\u6210\u3057\u305f Spring Starter \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u5229\u7528\u3057\u3066\u30d5\u30a9\u30fc\u30e0\u753b\u9762\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u306b\u306f <a href=\"http:\/\/www.thymeleaf.org\/\" target=\"_blank\">Thymeleaf<\/a> \u3092\u5229\u7528\u3057\u307e\u3059\u3002<br \/>\n\u753b\u9762\u306e\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306b\u5165\u529b\u3057\u305f\u5185\u5bb9\u3092\u9001\u4fe1\u3057\u3066\u753b\u9762\u306b\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<h2>\u74b0\u5883<\/h2>\n<ul>\n<li>Windows 10<\/li>\n<li>Java 8<\/li>\n<li>Spring Tool Suite (STS) 3.8.1<\/li>\n<\/ul>\n<h2>Spring Boot \u306f JSP \u3092\u63a8\u5968\u3057\u306a\u3044<\/h2>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f REST \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u30d6\u30e9\u30a6\u30b6\u753b\u9762\u306b\u8868\u793a\u3055\u305b\u307e\u3057\u305f\u3002<br \/>\n\u3057\u304b\u3057\u3001\u5b9f\u969b\u306e Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3092\u5229\u7528\u3057\u3066\u72ec\u81ea\u30eb\u30fc\u30eb\u3084\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u3067\u8a18\u8ff0\u3055\u308c\u305f\u30b3\u30fc\u30c9\u304b\u3089 HTML \u753b\u9762\u3092\u4f5c\u6210\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u753b\u9762\u306b\u8868\u793a\u3055\u305b\u3066\u3044\u307e\u3059\u3002<br \/>\nJava \u3067 Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306e\u7d4c\u9a13\u304c\u3042\u308b\u65b9\u306f JSP \u3092\u5229\u7528\u3059\u308b\u6a5f\u4f1a\u304c\u591a\u304b\u3063\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 <\/p>\n<p>\u3068\u3053\u308d\u304c\u3001<a href=\"http:\/\/docs.spring.io\/spring-boot\/docs\/current\/reference\/htmlsingle\/#boot-features-spring-mvc-template-engines\" target=\"_blank\">Spring Boot 1.4.1 \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>\u3092\u78ba\u8a8d\u3059\u308b\u3068\u5229\u7528\u3067\u304d\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u306e\u7a2e\u985e\u306b\u3064\u3044\u3066\u306e\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u304c<\/p>\n<p><em>JSPs should be avoided if possible, there are several known limitations when using them with embedded servlet containers.<\/em><\/p>\n<p>\u300cJSP \u306f\u53ef\u80fd\u306a\u5834\u5408\u306f\u5229\u7528\u306f\u907f\u3051\u308b\u3079\u304d\u300d\u3068\u3042\u308a\u307e\u3059(\u00b4\u30fb\u03c9\u30fb`)<br \/>\n\u305d\u3053\u3067\u3001\u4eca\u56de\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u306b\u306f <a href=\"http:\/\/www.thymeleaf.org\/\" target=\"_blank\">Thymeleaf<\/a> \u3092\u5229\u7528\u3057\u3066\u753b\u9762\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>pom.xml \u306e\u7de8\u96c6<\/h2>\n<p>\u5229\u7528\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea Thymeleaf \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\nDemoSpringBootApp \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u76f4\u4e0b\u306b\u3042\u308b\u300cpom.xml\u300d\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001Open With > Text Editor \u3092\u30af\u30ea\u30c3\u30af\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-01.png\" rel=\"facebox\" rel=\"attachment wp-att-12271\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-01.png\" alt=\"pom.xml\u3092TextEditor\u3067\u958b\u304f\" width=\"602\" height=\"360\" class=\"alignnone size-full wp-image-12271\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-01.png 602w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-01-300x179.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067 pom.xml \u304c\u7de8\u96c6\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u30b3\u30e1\u30f3\u30c8\u3067\u300c&lt!-- \u8ffd\u52a0: \u3053\u3053\u304b\u3089 -->\u300d\u300c&lt!-- \u8ffd\u52a0: \u3053\u3053\u307e\u3067 -->\u300d\u3068\u66f8\u304b\u308c\u305f\u7bc4\u56f2\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:xml decode:true \">\r\n    <dependencies>\r\n        <dependency>\r\n            <groupId>org.springframework.boot<\/groupId>\r\n            <artifactId>spring-boot-starter-web<\/artifactId>\r\n        <\/dependency>\r\n\r\n        <dependency>\r\n            <groupId>org.springframework.boot<\/groupId>\r\n            <artifactId>spring-boot-starter-test<\/artifactId>\r\n            <scope>test<\/scope>\r\n        <\/dependency>\r\n\r\n        <!-- \u8ffd\u52a0: \u3053\u3053\u304b\u3089 -->\r\n        <dependency>\r\n            <groupId>org.springframework.boot<\/groupId>\r\n            <artifactId>spring-boot-starter-thymeleaf<\/artifactId>\r\n        <\/dependency>\r\n        <!-- \u8ffd\u52a0: \u3053\u3053\u307e\u3067 -->\r\n    <\/dependencies>\r\n<\/pre>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4fee\u6b63<\/h2>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u4f5c\u6210\u3057\u305fHelloController.java \u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/2-07.png\" rel=\"facebox\" rel=\"attachment wp-att-12243\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/2-07.png\" alt=\"\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30af\u30e9\u30b9\u306e\u4f5c\u6210\u5b8c\u4e86\" width=\"333\" height=\"460\" class=\"alignnone size-full wp-image-12243\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/2-07.png 333w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/2-07-217x300.png 217w\" sizes=\"(max-width: 333px) 100vw, 333px\" \/><\/a><\/p>\n<pre class=\"lang:java decode:true \" >\r\npackage com.techscore.springboot;\r\n \r\nimport org.springframework.stereotype.Controller;\r\nimport org.springframework.web.bind.annotation.RequestMapping;\r\nimport org.springframework.web.bind.annotation.RequestMethod;\r\nimport org.springframework.web.bind.annotation.RequestParam;\r\nimport org.springframework.web.servlet.ModelAndView;\r\n\r\n@Controller\r\npublic class HelloController {\r\n    \r\n    @RequestMapping(value=\"\/\", method=RequestMethod.GET)\r\n    public ModelAndView index(ModelAndView mav) {\r\n        mav.setViewName(\"index\");\r\n        mav.addObject(\"msg\", \"input your name :\");    \/\/ \u8868\u793a\u30e1\u30c3\u30bb\u30fc\u30b8\r\n        return mav;\r\n    }\r\n\r\n    @RequestMapping(value=\"\/\", method=RequestMethod.POST)\r\n    public ModelAndView send(@RequestParam(\"name\")String name, \r\n            ModelAndView mav) {\r\n        mav.setViewName(\"index\");\r\n        mav.addObject(\"msg\", \"Hello \" + name + \" !\");    \/\/ \u8868\u793a\u30e1\u30c3\u30bb\u30fc\u30b8\r\n        mav.addObject(\"value\", name);                    \/\/ \u5165\u529b\u30c6\u30ad\u30b9\u30c8\u306b\u5165\u529b\u5024\u3092\u8868\u793a\r\n        return mav;\r\n    }\r\n}\r\n<\/pre>\n<p>\u30af\u30e9\u30b9\u5b9a\u7fa9\u306e\u524d\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 \u306f \u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f @RestController \u3067\u3057\u305f\u304c\u3001\u4eca\u56de\u306f @Controller \u3092\u5229\u7528\u3057\u307e\u3059\u3002@RestController \u306f\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5074\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u8fd4\u3059\u3060\u3051\u306e\u52d5\u4f5c\u3067\u3057\u305f\u304c\u3001@Controller \u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066 HTML \u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\nModelAndView \u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u5229\u7528\u3059\u308b\u30c7\u30fc\u30bf\u985e\u3068\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u540d\u306a\u3069\u30d3\u30e5\u30fc\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u307e\u3068\u3081\u3066\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9\u3067\u3059\u3002<\/p>\n<h2>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210<\/h2>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3067\u300csrc\/main\/resources\u300d\u914d\u4e0b\u306b\u3042\u308b\u300ctemplates\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3057\u3066\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001New > Other\u2026 \u3092\u30af\u30ea\u30c3\u30af\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-02.png\" rel=\"facebox\" rel=\"attachment wp-att-12283\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-02.png\" alt=\"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\" width=\"602\" height=\"413\" class=\"alignnone size-full wp-image-12283\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-02.png 602w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-02-300x206.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>\u8a2d\u5b9a\u753b\u9762\u304c\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u300cWeb\u300d\u5185\u306e\u300cHTML File\u300d\u3092\u9078\u629e\u3057\u3066 Next \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-03.png\" rel=\"facebox\" rel=\"attachment wp-att-12285\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-03.png\" alt=\"HTML File\u3092\u9078\u629e\" width=\"507\" height=\"490\" class=\"alignnone size-full wp-image-12285\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-03.png 507w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-03-300x290.png 300w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/a><\/p>\n<p>\u4fdd\u5b58\u5834\u6240\u306f\u300ctemplates\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u300cindex.html\u300d\u3092\u5165\u529b\u3057\u3066 Next \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-04.png\" rel=\"facebox\" rel=\"attachment wp-att-12287\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-04.png\" alt=\"\u4fdd\u5b58\u5834\u6240\u3092\u9078\u629e\u3057\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5165\u529b\" width=\"508\" height=\"593\" class=\"alignnone size-full wp-image-12287\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-04.png 508w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-04-257x300.png 257w\" sizes=\"(max-width: 508px) 100vw, 508px\" \/><\/a><\/p>\n<p>HTML Template \u306f\u300cNew HTML File (5)\u300d\u3092\u9078\u629e\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-05.png\" rel=\"facebox\" rel=\"attachment wp-att-12289\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-05.png\" alt=\"HTML Template\u3092\u9078\u629e\" width=\"507\" height=\"592\" class=\"alignnone size-full wp-image-12289\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-05.png 507w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-05-257x300.png 257w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/a><\/p>\n<p>Finish \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001index.html \u306e\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-06.png\" rel=\"facebox\" rel=\"attachment wp-att-12290\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-06.png\" alt=\"index.html\u306e\u4f5c\u6210\u5b8c\u4e86\" width=\"325\" height=\"456\" class=\"alignnone size-full wp-image-12290\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-06.png 325w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-06-214x300.png 214w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/a><\/p>\n<p>index.html \u3092\u7de8\u96c6\u3057\u3066\u3001\u5165\u529b\u30c6\u30ad\u30b9\u30c8\u6b04\u306b\u5024\u3092\u5165\u529b\u3057\u3066\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u9001\u4fe1\u3055\u308c\u308b\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u5165\u529b\u30c6\u30ad\u30b9\u30c8\u6b04\u306e\u4e0a\u306b\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u53d7\u3051\u53d6\u3063\u305f\u5024\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:html decode:true \" >\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=UTF-8\" \/>\r\n<title>Hello Page<\/title>\r\n<\/head>\r\n<body>\r\n    <p th:text=\"${msg}\">please wait...<\/p>\r\n    <form method=\"post\" action=\"\/\">\r\n        <input type=\"text\" name=\"name\" th:value=\"${value}\" \/>\r\n        <input type=\"submit\" value=\"Click\" \/>\r\n    <\/form>\r\n<\/body>\r\n<\/html>\r\n<\/pre>\n<p>\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u4ee5\u4e0a\u3067\u3059\u3002<br \/>\n\u305d\u308c\u3067\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u5b9f\u884c\u3057\u3066\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9<\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300cDemoSpringBootApp\u300d\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001Run As > Spring Boot App \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n\u3057\u3070\u3089\u304f\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u3001\u672b\u5c3e\u306b\u300cStarted DemoSpringBootAppApplication\u300d\u3068\u3042\u308a\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u5b9f\u884c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\n  .   ____          _            __ _ _\r\n \/\\\\ \/ ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\\r\n( ( )\\___ | '_ | '_| | '_ \\\/ _` | \\ \\ \\ \\\r\n \\\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )\r\n  '  |____| .__|_| |_|_| |_\\__, | \/ \/ \/ \/\r\n =========|_|==============|___\/=\/_\/_\/_\/\r\n :: Spring Boot ::        (v1.4.1.RELEASE)\r\n<\/pre>\n<p>\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br \/>\nhttp:\/\/localhost:8080\/<br \/>\n\u5165\u529b\u30c6\u30ad\u30b9\u30c8\u6b04\u3068\u30dc\u30bf\u30f3\u306e\u30d5\u30a9\u30fc\u30e0\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-07.png\" rel=\"facebox\" rel=\"attachment wp-att-12296\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-07.png\" alt=\"\u5165\u529b\u753b\u9762\u3092\u8868\u793a\" width=\"562\" height=\"230\" class=\"alignnone size-full wp-image-12296\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-07.png 562w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-07-300x123.png 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/a><\/p>\n<p>\u5165\u529b\u30c6\u30ad\u30b9\u30c8\u6b04\u306b\u5165\u529b\u3057\u3066\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3067\u8ffd\u52a0\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u3068\u3042\u308f\u305b\u3066\u300cHello \u201d\u5165\u529b\u5024\u201d !\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-08.png\" rel=\"facebox\" rel=\"attachment wp-att-12298\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-08.png\" alt=\"\u5165\u529b\u3057\u305f\u5024\u304c\u8868\u793a\u3055\u308c\u305f\" width=\"562\" height=\"230\" class=\"alignnone size-full wp-image-12298\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-08.png 562w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2016\/10\/3-08-300x123.png 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/a><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u306f\u3001\u753b\u9762\u306e\u5165\u529b\u9805\u76ee\u5185\u5bb9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u305f\u308a\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u767b\u9332\u3057\u3066\u691c\u7d22\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u308a\u3059\u308b\u306e\u3082\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Spring Boot \u3092\u5229\u7528\u3057\u305f Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u5b9f\u969b\u306b\u753b\u9762\u304c\u52d5\u304f\u307e\u3067\u304c\u77ed\u6642\u9593\u3067\u3042\u308b\u3053\u3068\u304c\u4f53\u611f\u3067\u304d\u307e\u3057\u305f\u3002\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u7169\u308f\u3055\u308c\u308b\u3053\u3068\u306a\u304f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u96c6\u4e2d\u3067\u304d\u305d\u3046\u306a\u70b9\u304c\u3068\u3066\u3082\u597d\u5370\u8c61\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u68b6\u539f\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306f TECHSCORE Advent Calendar 2016 \u306e3\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 <\/p>\n<p>\u300cSpring Tool Suite (STS)\u3068 Spring Boot \u3067\u59cb\u3081\u308b Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u300d\u306e\u7b2c3\u56de\u3067\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2016\/12\/03\/start-with-sts-and-spring-boot-3\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[239,18],"tags":[141,57,136,122],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/12255"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=12255"}],"version-history":[{"count":66,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/12255\/revisions"}],"predecessor-version":[{"id":12584,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/12255\/revisions\/12584"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=12255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=12255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=12255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}