{"id":254,"date":"2017-07-25T23:59:58","date_gmt":"2017-07-25T14:59:58","guid":{"rendered":"http:\/\/reasty.net\/?p=254"},"modified":"2017-07-25T23:59:58","modified_gmt":"2017-07-25T14:59:58","slug":"25%ec%9e%a5-asp-net-core-1-0-mvc-%ed%94%84%eb%a0%88%ec%9e%84%ec%9b%8c%ed%81%ac","status":"publish","type":"post","link":"https:\/\/reasty.net\/?p=254","title":{"rendered":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c"},"content":{"rendered":"<h1>25.1. ASP.NET Core MVC<\/h1>\n<p>ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4.<br \/>\nEmpty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4.<br \/>\n\uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4.<\/p>\n<pre title=\"Startup.cs\" class=\"lang:c# decode:true \">app.UseMvc(routes =&gt;\n{\n    routes.mapRoute(\n        name: \"default\",\n        template: \"{controller=Home}\/{action=Index}\/{id?}\");\n});<\/pre>\n<h1>25.2. \ub77c\uc6b0\ud305<\/h1>\n<ul>\n<li>WebForm &#8211; \ub514\uc2a4\ud06c\uc0c1\uc758 \ud30c\uc77c<\/li>\n<li>MVC &#8211; \ucee8\ud2b8\ub864\ub7ec \uc561\uc158(Controller Action)<\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center; background-color: #b5b5b5;\"><strong><span style=\"color: #000000;\">\uacbd\ub85c<\/span><\/strong><\/td>\n<td style=\"text-align: center; background-color: #b5b5b5;\"><strong><span style=\"color: #000000;\">\ucee8\ud2b8\ub864\ub7ec \ud074\ub798\uc2a4<\/span><\/strong><\/td>\n<td style=\"text-align: center; background-color: #b5b5b5;\"><strong><span style=\"color: #000000;\">\uc561\uc158(Action) \uba54\uc11c\ub4dc<\/span><\/strong><\/td>\n<td style=\"text-align: center; background-color: #b5b5b5;\"><strong><span style=\"color: #000000;\">id \ub9e4\uac1c\ubcc0\uc218<\/span><\/strong><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/asp.net\/Home<\/td>\n<td>Home<\/td>\n<td>Index<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/asp.net\/Home\/Index<\/td>\n<td>Home<\/td>\n<td>Index<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/asp.net\/Home\/About<\/td>\n<td>Home<\/td>\n<td>About<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/asp.net\/Note\/Details\/12345<\/td>\n<td>Note<\/td>\n<td>Details<\/td>\n<td>12345<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: center;\"><span style=\"font-size: 8pt;\">[\uae30\ubcf8\uc801\uc778 URL \ub77c\uc6b0\ud305]<\/span><\/p>\n<h1>25.4. \uc2e4\uc2b5<\/h1>\n<p>@inject \uc9c0\uc2dc\ubb38\uc740 DataFinder \ud074\ub798\uc2a4\ub97c \uc9c1\uc811 \ucee8\ud2b8\ub864\ub7ec\uc5d0\uc11c \ud638\ucd9c\ud574\uc11c \ubdf0 \ud398\uc774\uc9c0\ub85c \uc804\ub2ec\ud558\ub294 \uac8c \uc544\ub2c8\ub77c<br \/>\n\ubdf0 \ud398\uc774\uc9c0\uc5d0 \uc9c1\uc811 \uc8fc\uc785\ud574\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\uac8c \ud558\ub294 \uc758\uc874\uc131 \uc8fc\uc785 \ubc29\uc2dd\uc774\ub2e4.<br \/>\n\uc774 \ucf54\ub4dc\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 DataFinder \ud074\ub798\uc2a4\ub97c Startup.cs \uc5d0\uc11c \uc11c\ube44\uc2a4 \ub4f1\ub85d\uc744 \ud574\uc8fc\uc5b4\uc57c \ud55c\ub2e4.<\/p>\n<ul>\n<li style=\"text-align: left;\">services.AddTransient&lt;DataFinder&gt;(); &#8211; Transient : \ud2b8\ub79c\uc158\ud2b8, \uc77c\uc2dc\uc801\uc778<\/li>\n<li style=\"text-align: left;\">services.AddInstance(); &lt;= \ubb54\uc9c0 \ubaa8\ub974\uaca0\uc74c.<\/li>\n<\/ul>\n<p>\ubaa8\ub378\uc5d0\uc11c \ubc1c\uc0dd\ub41c \ub370\uc774\ud130\ub97c \ucee8\ud2b8\ub864\ub7ec\uac00 \uac00\uc838\ub2e4\uac00 \ubdf0 \ud398\uc774\uc9c0\uc5d0\uc11c \ucd9c\ub825\ud558\ub294 \ud615\ud0dc\uac00 MVC.<br \/>\nViewComponent \ub77c\ub294 \uac83\ub3c4 \uc788\ub2e4.<\/p>\n<p>\uc758\uc874\uc131 \uc8fc\uc785 \uae30\ub2a5\uacfc \ubdf0 \ucef4\ud3ec\ub10c\ud2b8.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>25.1. ASP.NET Core MVC ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4. Empty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4. \uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4. app.UseMvc(routes =&gt; { routes.mapRoute( name: &#8220;default&#8221;, template: &#8220;{controller=Home}\/{action=Index}\/{id?}&#8221;); }); 25.2. \ub77c\uc6b0\ud305 WebForm &#8211; \ub514\uc2a4\ud06c\uc0c1\uc758 \ud30c\uc77c&#8230; <a href=\"https:\/\/reasty.net\/?p=254\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[13,14],"tags":[18,19,21],"class_list":["post-254","post","type-post","status-publish","format-standard","hentry","category-asp-net-core","category-asp-net-core-net","tag-asp-net-core","tag-asp-net-korea-study-group","tag-c"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"25.1. ASP.NET Core MVC ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4. Empty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4. \uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4. app.UseMvc(routes =&gt; { routes.mapRoute( name: &quot;default&quot;, template: &quot;{controller=Home}\/{action=Index}\/{id?}&quot;); }); 25.2.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Reasty\"\/>\n\t<meta name=\"google-site-verification\" content=\"jcPlHP_CH1l7BsKhhCYbJmc3sJMEMI_aCypCiUfTjdw\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/reasty.net\/?p=254\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"ko_KR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Reasty&#039;s Programming Memories - \ub808\uc2a4\ud2f0\uc758 \ud504\ub85c\uadf8\ub798\ubc0d \ub178\ud558\uc6b0 \ub178\uc6e8\uc5b4\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c - Reasty&#039;s Programming Memories\" \/>\n\t\t<meta property=\"og:description\" content=\"25.1. ASP.NET Core MVC ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4. Empty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4. \uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4. app.UseMvc(routes =&gt; { routes.mapRoute( name: &quot;default&quot;, template: &quot;{controller=Home}\/{action=Index}\/{id?}&quot;); }); 25.2.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/reasty.net\/?p=254\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-07-25T14:59:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-07-25T14:59:58+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/reastykim\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@reastykim\" \/>\n\t\t<meta name=\"twitter:title\" content=\"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c - Reasty&#039;s Programming Memories\" \/>\n\t\t<meta name=\"twitter:description\" content=\"25.1. ASP.NET Core MVC ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4. Empty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4. \uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4. app.UseMvc(routes =&gt; { routes.mapRoute( name: &quot;default&quot;, template: &quot;{controller=Home}\/{action=Index}\/{id?}&quot;); }); 25.2.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@reastykim\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#blogposting\",\"name\":\"25\\uc7a5 ASP.NET Core 1.0 MVC \\ud504\\ub808\\uc784\\uc6cc\\ud06c - Reasty's Programming Memories\",\"headline\":\"25\\uc7a5 ASP.NET Core 1.0 MVC \\ud504\\ub808\\uc784\\uc6cc\\ud06c\",\"author\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5b441925fb88cfa3ff962d797c048671a3ef20a01d85a4de1feadc32d00b2d89?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Reasty\"},\"datePublished\":\"2017-07-25T23:59:58+09:00\",\"dateModified\":\"2017-07-25T23:59:58+09:00\",\"inLanguage\":\"ko-KR\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#webpage\"},\"articleSection\":\"ASP.NET Core, ASP.NET Core, ASP.NET Core, ASP.NET Korea Study Group, C#\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net#listItem\",\"position\":1,\"name\":\"\\ud648\",\"item\":\"https:\\\/\\\/reasty.net\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?cat=9#listItem\",\"name\":\"Study\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?cat=9#listItem\",\"position\":2,\"name\":\"Study\",\"item\":\"https:\\\/\\\/reasty.net\\\/?cat=9\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?cat=13#listItem\",\"name\":\"ASP.NET Core\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net#listItem\",\"name\":\"\\ud648\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?cat=13#listItem\",\"position\":3,\"name\":\"ASP.NET Core\",\"item\":\"https:\\\/\\\/reasty.net\\\/?cat=13\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#listItem\",\"name\":\"25\\uc7a5 ASP.NET Core 1.0 MVC \\ud504\\ub808\\uc784\\uc6cc\\ud06c\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?cat=9#listItem\",\"name\":\"Study\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#listItem\",\"position\":4,\"name\":\"25\\uc7a5 ASP.NET Core 1.0 MVC \\ud504\\ub808\\uc784\\uc6cc\\ud06c\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?cat=13#listItem\",\"name\":\"ASP.NET Core\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reasty.net\\\/#person\",\"name\":\"Reasty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5b441925fb88cfa3ff962d797c048671a3ef20a01d85a4de1feadc32d00b2d89?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Reasty\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?author=1#author\",\"url\":\"https:\\\/\\\/reasty.net\\\/?author=1\",\"name\":\"Reasty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5b441925fb88cfa3ff962d797c048671a3ef20a01d85a4de1feadc32d00b2d89?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Reasty\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#webpage\",\"url\":\"https:\\\/\\\/reasty.net\\\/?p=254\",\"name\":\"25\\uc7a5 ASP.NET Core 1.0 MVC \\ud504\\ub808\\uc784\\uc6cc\\ud06c - Reasty's Programming Memories\",\"description\":\"25.1. ASP.NET Core MVC ASP.NET Core \\uc6f9 \\uc751\\uc6a9 \\ud504\\ub85c\\uadf8\\ub7a8 \\ud15c\\ud50c\\ub9bf\\uc73c\\ub85c \\ud504\\ub85c\\uc81d\\ud2b8\\ub97c \\uc0dd\\uc131\\ud558\\uba74 MVC\\ub97c \\uc0ac\\uc6a9\\ud558\\ub294\\ub370 \\ud544\\uc694\\ud55c \\ubaa8\\ub4e0 \\uad6c\\uc131\\uc694\\uc18c\\uac00 \\uac16\\ucd94\\uc5b4\\uc838\\uc788\\ub2e4. Empty \\ud15c\\ud50c\\ub9bf\\uc73c\\ub85c \\ud504\\ub85c\\uc81d\\ud2b8\\ub97c \\uc0dd\\uc131\\ud55c \\uacbd\\uc6b0, NuGet \\uc744 \\uc774\\uc6a9\\ud558\\uc5ec Microsoft.AspNetCore.Mvc \\ud328\\ud0a4\\uc9c0\\ub97c \\ucd94\\uac00\\ud558\\uba74 \\ub41c\\ub2e4. \\uadf8 \\uc774\\ud6c4 Startup.cs\\ud30c\\uc77c\\uc5d0 AddMvc()\\uba54\\uc11c\\ub4dc\\uc640 UseMvc() \\uba54\\uc11c\\ub4dc\\ub97c \\ud638\\ucd9c\\ud558\\uace0, UseMvc() \\uba54\\uc11c\\ub4dc\\uc5d0\\uc11c \\ub77c\\uc6b0\\ud305 \\uacbd\\ub85c\\ub97c \\uc124\\uc815\\ud558\\uba74 \\ubaa8\\ub4e0 \\uc900\\ube44\\uac00 \\ub05d\\ub09c\\ub2e4. app.UseMvc(routes => { routes.mapRoute( name: \\\"default\\\", template: \\\"{controller=Home}\\\/{action=Index}\\\/{id?}\\\"); }); 25.2.\",\"inLanguage\":\"ko-KR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/?p=254#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/?author=1#author\"},\"datePublished\":\"2017-07-25T23:59:58+09:00\",\"dateModified\":\"2017-07-25T23:59:58+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/reasty.net\\\/#website\",\"url\":\"https:\\\/\\\/reasty.net\\\/\",\"name\":\"Reasty's Programming Memories\",\"description\":\"\\ub808\\uc2a4\\ud2f0\\uc758 \\ud504\\ub85c\\uadf8\\ub798\\ubc0d \\ub178\\ud558\\uc6b0 \\ub178\\uc6e8\\uc5b4\",\"inLanguage\":\"ko-KR\",\"publisher\":{\"@id\":\"https:\\\/\\\/reasty.net\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c - Reasty's Programming Memories","description":"25.1. ASP.NET Core MVC ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4. Empty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4. \uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4. app.UseMvc(routes => { routes.mapRoute( name: \"default\", template: \"{controller=Home}\/{action=Index}\/{id?}\"); }); 25.2.","canonical_url":"https:\/\/reasty.net\/?p=254","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"jcPlHP_CH1l7BsKhhCYbJmc3sJMEMI_aCypCiUfTjdw","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/reasty.net\/?p=254#blogposting","name":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c - Reasty's Programming Memories","headline":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c","author":{"@id":"https:\/\/reasty.net\/?author=1#author"},"publisher":{"@id":"https:\/\/reasty.net\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/reasty.net\/?p=254#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/5b441925fb88cfa3ff962d797c048671a3ef20a01d85a4de1feadc32d00b2d89?s=96&d=mm&r=g","width":96,"height":96,"caption":"Reasty"},"datePublished":"2017-07-25T23:59:58+09:00","dateModified":"2017-07-25T23:59:58+09:00","inLanguage":"ko-KR","mainEntityOfPage":{"@id":"https:\/\/reasty.net\/?p=254#webpage"},"isPartOf":{"@id":"https:\/\/reasty.net\/?p=254#webpage"},"articleSection":"ASP.NET Core, ASP.NET Core, ASP.NET Core, ASP.NET Korea Study Group, C#"},{"@type":"BreadcrumbList","@id":"https:\/\/reasty.net\/?p=254#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/reasty.net#listItem","position":1,"name":"\ud648","item":"https:\/\/reasty.net","nextItem":{"@type":"ListItem","@id":"https:\/\/reasty.net\/?cat=9#listItem","name":"Study"}},{"@type":"ListItem","@id":"https:\/\/reasty.net\/?cat=9#listItem","position":2,"name":"Study","item":"https:\/\/reasty.net\/?cat=9","nextItem":{"@type":"ListItem","@id":"https:\/\/reasty.net\/?cat=13#listItem","name":"ASP.NET Core"},"previousItem":{"@type":"ListItem","@id":"https:\/\/reasty.net#listItem","name":"\ud648"}},{"@type":"ListItem","@id":"https:\/\/reasty.net\/?cat=13#listItem","position":3,"name":"ASP.NET Core","item":"https:\/\/reasty.net\/?cat=13","nextItem":{"@type":"ListItem","@id":"https:\/\/reasty.net\/?p=254#listItem","name":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c"},"previousItem":{"@type":"ListItem","@id":"https:\/\/reasty.net\/?cat=9#listItem","name":"Study"}},{"@type":"ListItem","@id":"https:\/\/reasty.net\/?p=254#listItem","position":4,"name":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c","previousItem":{"@type":"ListItem","@id":"https:\/\/reasty.net\/?cat=13#listItem","name":"ASP.NET Core"}}]},{"@type":"Person","@id":"https:\/\/reasty.net\/#person","name":"Reasty","image":{"@type":"ImageObject","@id":"https:\/\/reasty.net\/?p=254#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/5b441925fb88cfa3ff962d797c048671a3ef20a01d85a4de1feadc32d00b2d89?s=96&d=mm&r=g","width":96,"height":96,"caption":"Reasty"}},{"@type":"Person","@id":"https:\/\/reasty.net\/?author=1#author","url":"https:\/\/reasty.net\/?author=1","name":"Reasty","image":{"@type":"ImageObject","@id":"https:\/\/reasty.net\/?p=254#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5b441925fb88cfa3ff962d797c048671a3ef20a01d85a4de1feadc32d00b2d89?s=96&d=mm&r=g","width":96,"height":96,"caption":"Reasty"}},{"@type":"WebPage","@id":"https:\/\/reasty.net\/?p=254#webpage","url":"https:\/\/reasty.net\/?p=254","name":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c - Reasty's Programming Memories","description":"25.1. ASP.NET Core MVC ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4. Empty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4. \uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4. app.UseMvc(routes => { routes.mapRoute( name: \"default\", template: \"{controller=Home}\/{action=Index}\/{id?}\"); }); 25.2.","inLanguage":"ko-KR","isPartOf":{"@id":"https:\/\/reasty.net\/#website"},"breadcrumb":{"@id":"https:\/\/reasty.net\/?p=254#breadcrumblist"},"author":{"@id":"https:\/\/reasty.net\/?author=1#author"},"creator":{"@id":"https:\/\/reasty.net\/?author=1#author"},"datePublished":"2017-07-25T23:59:58+09:00","dateModified":"2017-07-25T23:59:58+09:00"},{"@type":"WebSite","@id":"https:\/\/reasty.net\/#website","url":"https:\/\/reasty.net\/","name":"Reasty's Programming Memories","description":"\ub808\uc2a4\ud2f0\uc758 \ud504\ub85c\uadf8\ub798\ubc0d \ub178\ud558\uc6b0 \ub178\uc6e8\uc5b4","inLanguage":"ko-KR","publisher":{"@id":"https:\/\/reasty.net\/#person"}}]},"og:locale":"ko_KR","og:site_name":"Reasty's Programming Memories - \ub808\uc2a4\ud2f0\uc758 \ud504\ub85c\uadf8\ub798\ubc0d \ub178\ud558\uc6b0 \ub178\uc6e8\uc5b4","og:type":"article","og:title":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c - Reasty's Programming Memories","og:description":"25.1. ASP.NET Core MVC ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4. Empty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4. \uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4. app.UseMvc(routes =&gt; { routes.mapRoute( name: &quot;default&quot;, template: &quot;{controller=Home}\/{action=Index}\/{id?}&quot;); }); 25.2.","og:url":"https:\/\/reasty.net\/?p=254","article:published_time":"2017-07-25T14:59:58+00:00","article:modified_time":"2017-07-25T14:59:58+00:00","article:publisher":"https:\/\/facebook.com\/reastykim","twitter:card":"summary_large_image","twitter:site":"@reastykim","twitter:title":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c - Reasty's Programming Memories","twitter:description":"25.1. ASP.NET Core MVC ASP.NET Core \uc6f9 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8 \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uba74 MVC\ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uad6c\uc131\uc694\uc18c\uac00 \uac16\ucd94\uc5b4\uc838\uc788\ub2e4. Empty \ud15c\ud50c\ub9bf\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud55c \uacbd\uc6b0, NuGet \uc744 \uc774\uc6a9\ud558\uc5ec Microsoft.AspNetCore.Mvc \ud328\ud0a4\uc9c0\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4. \uadf8 \uc774\ud6c4 Startup.cs\ud30c\uc77c\uc5d0 AddMvc()\uba54\uc11c\ub4dc\uc640 UseMvc() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0, UseMvc() \uba54\uc11c\ub4dc\uc5d0\uc11c \ub77c\uc6b0\ud305 \uacbd\ub85c\ub97c \uc124\uc815\ud558\uba74 \ubaa8\ub4e0 \uc900\ube44\uac00 \ub05d\ub09c\ub2e4. app.UseMvc(routes =&gt; { routes.mapRoute( name: &quot;default&quot;, template: &quot;{controller=Home}\/{action=Index}\/{id?}&quot;); }); 25.2.","twitter:creator":"@reastykim"},"aioseo_meta_data":{"post_id":"254","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-08-10 04:56:48","updated":"2025-06-04 03:14:51","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/reasty.net\" title=\"\ud648\">\ud648<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/reasty.net\/?cat=9\" title=\"Study\">Study<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/reasty.net\/?cat=13\" title=\"ASP.NET Core\">ASP.NET Core<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\ud648","link":"https:\/\/reasty.net"},{"label":"Study","link":"https:\/\/reasty.net\/?cat=9"},{"label":"ASP.NET Core","link":"https:\/\/reasty.net\/?cat=13"},{"label":"25\uc7a5 ASP.NET Core 1.0 MVC \ud504\ub808\uc784\uc6cc\ud06c","link":"https:\/\/reasty.net\/?p=254"}],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts\/254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254"}],"version-history":[{"count":0,"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts\/254\/revisions"}],"wp:attachment":[{"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}