{"id":411,"date":"2017-08-02T12:40:03","date_gmt":"2017-08-02T12:40:03","guid":{"rendered":"http:\/\/happily70.dothome.co.kr\/?p=411"},"modified":"2017-08-02T12:40:03","modified_gmt":"2017-08-02T12:40:03","slug":"%ec%8a%a4%ed%94%84%eb%a7%81mvc-%ec%bb%a8%ed%8a%b8%eb%a1%a4%eb%9f%ac","status":"publish","type":"post","link":"http:\/\/happily70.dothome.co.kr\/?p=411","title":{"rendered":"\uc2a4\ud504\ub9c1MVC \ucee8\ud2b8\ub864\ub7ec"},"content":{"rendered":"<p>\uc2a4\ud504\ub9c1MVC \ucee8\ud2b8\ub864\ub7ec\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8(\uc6f9 \ube0c\ub77c\uc6b0\uc800)\uc758 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud55c\ub2e4.<\/p>\n<pre class=\"prettyprint\">@Controller\r\npublic class HelloController {\r\n    @RequestMapping(value = \"\/hello.do\", method=RequestMethod.POST)\r\n     public String hello(Model model){\r\n     model.addAttribute(\"greeting\", \"\uc548\ub155\ud558\uc138\uc694\");\r\n    return \"hello\";\r\n   }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\uc704 \ucf54\ub4dc\uc758 \uacbd\uc6b0 \uc6f9 \ube0c\ub77c\uc6b0\uc800\uac00 &#8220;\/hello.do&#8221; URL\uc744 Post\ubc29\uc2dd\uc73c\ub85c \uc694\uccad\uc744 \ud558\uba74 hello()\uba54\uc18c\ub4dc\ub97c \uc774\uc6a9\ud574\uc11c \uadf8 \uc694\uccad\uc744 \ucc98\ub9ac\ud55c\ub2e4\uace0 \uc9c0\uc815\ud588\ub2e4.<\/p>\n<p>\ucee8\ud2b8\ub864\ub7ec\uc5d0\uc11c \uc9c1\uc811 \uc751\ub2f5\uacb0\uacfc\ub97c \uc0dd\uc131\ud560 \uc218\ub3c4 \uc788\uc9c0\ub9cc, \ubcf4\ud1b5\uc740 \uacb0\uacfc\ub97c \ubcf4\uc5ec\uc904 \ub54c \uc0ac\uc6a9\ud560 \ubdf0\uc774\ub984\uc744 \ub9ac\ud134\ud55c\ub2e4.<br \/>\n\uc704 \ucf54\ub4dc\uc5d0\uc11c\ub294 &#8220;hello&#8221;\ub97c \ub9ac\ud134\ud588\ub294\ub370, \uc2a4\ud504\ub9c1MVC\ub294 &#8220;hello&#8221;\uc5d0 \ud574\ub2f9\ud558\ub294 \ubdf0 \uad6c\ud604\uc744 \ucc3e\uc740 \ub4a4, \ud574\ub2f9 \ubdf0\ub97c \uc774\uc6a9\ud574\uc11c \uc751\ub2f5 \uacb0\uacfc\ub97c \uc0dd\uc131\ud55c\ub2e4.<\/p>\n<p>\ubdf0\uc5d0\uc11c \uc751\ub2f5 \uacb0\uacfc\ub97c \uc0dd\uc131\ud560 \ub54c \ub370\uc774\ud130\uac00 \ud544\uc694\ud560 \uc218\ub3c4 \uc788\ub294\ub370, \uc774\ub54c\uc5d0\ub294 \ubaa8\ub378\uc5d0 \ub2f4\uae34 \ub370\uc774\ud130\ub97c \uc774\uc6a9\ud574\uc11c \uc54c\ub9de\uc740 \uc751\ub2f5 \uacb0\uacfc\ub97c \uc0dd\uc131\ud558\uac8c \ub41c\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc2a4\ud504\ub9c1MVC \ucee8\ud2b8\ub864\ub7ec\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8(\uc6f9 \ube0c\ub77c\uc6b0\uc800)\uc758 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud55c\ub2e4. @Controller public class HelloController { @RequestMapping(value = &#8220;\/hello.do&#8221;, method=RequestMethod.POST) public String hello(Model model){ model.addAttribute(&#8220;greeting&#8221;, &#8220;\uc548\ub155\ud558\uc138\uc694&#8221;); return &#8220;hello&#8221;; } } &nbsp; &nbsp; \uc704 \ucf54\ub4dc\uc758 \uacbd\uc6b0 \uc6f9 \ube0c\ub77c\uc6b0\uc800\uac00 &#8220;\/hello.do&#8221; URL\uc744 Post\ubc29\uc2dd\uc73c\ub85c \uc694\uccad\uc744 \ud558\uba74 hello()\uba54\uc18c\ub4dc\ub97c \uc774\uc6a9\ud574\uc11c \uadf8 \uc694\uccad\uc744 \ucc98\ub9ac\ud55c\ub2e4\uace0 \uc9c0\uc815\ud588\ub2e4. \ucee8\ud2b8\ub864\ub7ec\uc5d0\uc11c \uc9c1\uc811 \uc751\ub2f5\uacb0\uacfc\ub97c \uc0dd\uc131\ud560 \uc218\ub3c4 \uc788\uc9c0\ub9cc, \ubcf4\ud1b5\uc740 \uacb0\uacfc\ub97c \ubcf4\uc5ec\uc904 \ub54c<\/p>\n<footer class=\"entry-footer index-entry\">\n<div class=\"post-social pull-left\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=http%3A%2F%2Fhappily70.dothome.co.kr%2F%3Fp%3D411\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-facebook\" aria-hidden=\"true\"><\/i><\/a><a href=\"https:\/\/twitter.com\/home?status=http%3A%2F%2Fhappily70.dothome.co.kr%2F%3Fp%3D411\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-twitter\" aria-hidden=\"true\"><\/i><\/a><a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=http%3A%2F%2Fhappily70.dothome.co.kr%2F%3Fp%3D411&#038;title=%EC%8A%A4%ED%94%84%EB%A7%81MVC+%EC%BB%A8%ED%8A%B8%EB%A1%A4%EB%9F%AC\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-linkedin\" aria-hidden=\"true\"><\/i><\/a><\/div>\n<p class=\"link-more\"><a href=\"http:\/\/happily70.dothome.co.kr\/?p=411\" class=\"more-link\">Continue reading <span class=\"meta-nav\">\u2192<\/span><\/a><\/p>\n<\/footer>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,33,11],"tags":[],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-back-end","category-developement","category-spring"],"_links":{"self":[{"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/411"}],"collection":[{"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=411"}],"version-history":[{"count":1,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":412,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions\/412"}],"wp:attachment":[{"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}