{"id":222,"date":"2019-08-27T09:01:47","date_gmt":"2019-08-27T00:01:47","guid":{"rendered":"http:\/\/dev.e-luda.com\/dev-note\/?p=306"},"modified":"2020-06-05T16:35:58","modified_gmt":"2020-06-05T07:35:58","slug":"%ea%b0%80%eb%b3%80%ed%98%95-list-%eb%a7%a4%ea%b0%9c%eb%b3%80%ec%88%98-%ec%82%ac%ec%9a%a9-%eb%8f%99%ec%a0%81-%eb%b0%98%ed%99%98-%ed%95%a8%ec%88%98","status":"publish","type":"post","link":"http:\/\/dev.e-luda.com\/dev-note\/?p=222","title":{"rendered":"\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218"},"content":{"rendered":"\r\n<p>BaseClass.java<br><br><\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;panda-syntax&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Java&quot;,&quot;modeName&quot;:&quot;java&quot;}\">protected &lt;E&gt; void setResponse(ModelMap model, List&lt;E&gt; ... resListArray) {\r\n\r\n    Box resDatas = new Box();\r\n    int listIndex = 0;\r\n    for (List E : resListArray) {\r\n        resDatas.put(RepItemName.RES_LIST_PREFIX + String.format(&quot;%03d&quot;, ++listIndex), E);\r\n    }\r\n\r\n    \/\/...\r\n}<\/pre><\/div>\r\n\r\n\r\n\r\n<p>callClass.java<br><br><\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;panda-syntax&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Java&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public void getExam00002(ModelMap model) {\r\n\r\n    Exam00002ReqVO reqParam = getRequestVO(Exam00002ReqVO.class);\r\n\r\n    List&lt;Exam00002Res1VO&gt; resList1 = mtDao.selectList(&quot;mt.exam.em.EmNee.selectNewExamStudentChk1&quot;, reqParam);\r\n\r\n    List&lt;Exam00002Res2VO&gt; resList2 = mtDao.selectList(&quot;mt.exam.em.EmNee.selectNewExamStudentChk2&quot;, reqParam);\r\n\r\n    \/\/\uc5ec\uae30\ucc98\ub7fc\r\n    List[] resList = {resList1, resList2};      \r\n\r\n    setResponse(model, resList);\r\n}<\/pre><\/div>\r\n\r\n\r\n\r\n<pre class=\"wp-block-verse\">\ub610\ub294 \uc544\ub798\ucc98\ub7fc Arrays.asList\ub97c \uc0ac\uc6a9\ud574\ub3c4 \ub428.\r\nBassClass.java<\/pre>\r\n\r\n\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;panda-syntax&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Java&quot;,&quot;modeName&quot;:&quot;java&quot;}\">protected &lt;E&gt; void setResponse(ModelMap model, List&lt;E&gt; resListArray) {\r\n\r\n    Box resDatas = new Box();\r\n    int listIndex = 0;\r\n    for (E list: resListArray) {\r\n        resDatas.put(RepItemName.RES_LIST_PREFIX + String.format(&quot;%03d&quot;, ++listIndex), list);\r\n    }\r\n\r\n    Box resParamBox = new Box();\r\n    resParamBox.put(EnpApiConst.SpParamName.ERR_CD, EnpApiConst.SpValue.SUCCESS_CD);\r\n    resParamBox.put(EnpApiConst.SpParamName.ERR_MSG, EnpApiConst.SpValue.SUCCESS_MSG);\r\n\r\n    \/\/...\r\n}<\/pre><\/div>\r\n\r\n\r\n\r\n<pre class=\"wp-block-verse\">callClass.java<\/pre>\r\n\r\n\r\n\r\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;panda-syntax&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;Java&quot;,&quot;modeName&quot;:&quot;java&quot;}\">import java.util.Arrays;\r\n\r\npublic void getExam00002(ModelMap model) {\r\n    Exam00002ReqVO reqParam = getRequestVO(Exam00002ReqVO.class);\r\n\r\n    List&lt;Exam00002Res1VO&gt; resList1 = mtDao.selectList(&quot;mt.exam.em.EmNee.selectNewExamStudentChk1&quot;, reqParam);\r\n\r\n    List&lt;Exam00002Res2VO&gt; resList2 = mtDao.selectList(&quot;mt.exam.em.EmNee.selectNewExamStudentChk2&quot;, reqParam);\r\n\r\n    setResponse(model, Arrays.asList(resList1, resList2));\r\n}<\/pre><\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>BaseClass.java callClass.java \ub610\ub294 \uc544\ub798\ucc98\ub7fc Arrays.asList\ub97c \uc0ac\uc6a9\ud574\ub3c4 \ub428. BassClass.java callClass.java<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218 - \ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/dev.e-luda.com\/dev-note\/?p=222\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218 - \ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8\" \/>\n<meta property=\"og:description\" content=\"BaseClass.java callClass.java \ub610\ub294 \uc544\ub798\ucc98\ub7fc Arrays.asList\ub97c \uc0ac\uc6a9\ud574\ub3c4 \ub428. BassClass.java callClass.java\" \/>\n<meta property=\"og:url\" content=\"http:\/\/dev.e-luda.com\/dev-note\/?p=222\" \/>\n<meta property=\"og:site_name\" content=\"\ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-27T00:01:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-05T07:35:58+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wizardlee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/dev.e-luda.com\/dev-note\/#website\",\"url\":\"http:\/\/dev.e-luda.com\/dev-note\/\",\"name\":\"\ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8\",\"description\":\"\ub2e4\ub978 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc0ac\uc774\ud2b8\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/dev.e-luda.com\/dev-note\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/dev.e-luda.com\/dev-note\/?p=222#webpage\",\"url\":\"http:\/\/dev.e-luda.com\/dev-note\/?p=222\",\"name\":\"\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218 - \ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8\",\"isPartOf\":{\"@id\":\"http:\/\/dev.e-luda.com\/dev-note\/#website\"},\"datePublished\":\"2019-08-27T00:01:47+00:00\",\"dateModified\":\"2020-06-05T07:35:58+00:00\",\"author\":{\"@id\":\"http:\/\/dev.e-luda.com\/dev-note\/#\/schema\/person\/7e381f3b46b7824adbe15ff43b53c42c\"},\"breadcrumb\":{\"@id\":\"http:\/\/dev.e-luda.com\/dev-note\/?p=222#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/dev.e-luda.com\/dev-note\/?p=222\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/dev.e-luda.com\/dev-note\/?p=222#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/dev.e-luda.com\/dev-note\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218\"}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/dev.e-luda.com\/dev-note\/#\/schema\/person\/7e381f3b46b7824adbe15ff43b53c42c\",\"name\":\"wizardlee\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/dev.e-luda.com\/dev-note\/#personlogo\",\"inLanguage\":\"ko-KR\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6eaa1dedfb9710f350bbf8ccb317e7cfa2a5a277b535c6558bc57169262ec430?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6eaa1dedfb9710f350bbf8ccb317e7cfa2a5a277b535c6558bc57169262ec430?s=96&d=mm&r=g\",\"caption\":\"wizardlee\"},\"sameAs\":[\"http:\/\/dev.e-luda.com\/dev-note\"],\"url\":\"http:\/\/dev.e-luda.com\/dev-note\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218 - \ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8","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":"http:\/\/dev.e-luda.com\/dev-note\/?p=222","og_locale":"ko_KR","og_type":"article","og_title":"\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218 - \ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8","og_description":"BaseClass.java callClass.java \ub610\ub294 \uc544\ub798\ucc98\ub7fc Arrays.asList\ub97c \uc0ac\uc6a9\ud574\ub3c4 \ub428. BassClass.java callClass.java","og_url":"http:\/\/dev.e-luda.com\/dev-note\/?p=222","og_site_name":"\ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8","article_published_time":"2019-08-27T00:01:47+00:00","article_modified_time":"2020-06-05T07:35:58+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wizardlee","Est. reading time":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/dev.e-luda.com\/dev-note\/#website","url":"http:\/\/dev.e-luda.com\/dev-note\/","name":"\ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8","description":"\ub2e4\ub978 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc0ac\uc774\ud2b8","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/dev.e-luda.com\/dev-note\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"http:\/\/dev.e-luda.com\/dev-note\/?p=222#webpage","url":"http:\/\/dev.e-luda.com\/dev-note\/?p=222","name":"\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218 - \ub9c8\ubc95\uc0ac\ub9ac\uc758\uac1c\ubc1c\ub178\ud2b8","isPartOf":{"@id":"http:\/\/dev.e-luda.com\/dev-note\/#website"},"datePublished":"2019-08-27T00:01:47+00:00","dateModified":"2020-06-05T07:35:58+00:00","author":{"@id":"http:\/\/dev.e-luda.com\/dev-note\/#\/schema\/person\/7e381f3b46b7824adbe15ff43b53c42c"},"breadcrumb":{"@id":"http:\/\/dev.e-luda.com\/dev-note\/?p=222#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["http:\/\/dev.e-luda.com\/dev-note\/?p=222"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/dev.e-luda.com\/dev-note\/?p=222#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/dev.e-luda.com\/dev-note"},{"@type":"ListItem","position":2,"name":"\uac00\ubcc0\ud615 List \ub9e4\uac1c\ubcc0\uc218 \uc0ac\uc6a9, \ub3d9\uc801 \ubc18\ud658 \ud568\uc218"}]},{"@type":"Person","@id":"http:\/\/dev.e-luda.com\/dev-note\/#\/schema\/person\/7e381f3b46b7824adbe15ff43b53c42c","name":"wizardlee","image":{"@type":"ImageObject","@id":"http:\/\/dev.e-luda.com\/dev-note\/#personlogo","inLanguage":"ko-KR","url":"https:\/\/secure.gravatar.com\/avatar\/6eaa1dedfb9710f350bbf8ccb317e7cfa2a5a277b535c6558bc57169262ec430?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6eaa1dedfb9710f350bbf8ccb317e7cfa2a5a277b535c6558bc57169262ec430?s=96&d=mm&r=g","caption":"wizardlee"},"sameAs":["http:\/\/dev.e-luda.com\/dev-note"],"url":"http:\/\/dev.e-luda.com\/dev-note\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":0,"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"wp:attachment":[{"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dev.e-luda.com\/dev-note\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}