{"id":351,"date":"2014-08-18T10:23:08","date_gmt":"2014-08-18T19:23:08","guid":{"rendered":"http:\/\/blog.box.kr\/?p=351"},"modified":"2014-08-18T10:23:08","modified_gmt":"2014-08-18T19:23:08","slug":"java-%ec%9e%90%eb%a6%bf%ec%88%98-%eb%a7%8c%ed%81%bc-0%ec%9c%bc%eb%a1%9c-%ec%b1%84%ec%9a%b0%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=351","title":{"rendered":"[JAVA] \uc790\ub9bf\uc218 \ub9cc\ud07c 0\uc73c\ub85c \ucc44\uc6b0\uae30.."},"content":{"rendered":"<div class=\"titleWrap\" style=\"color: #666666;\">\n<h2>\uc608\ub97c \ub4e4\uc5b4.. 3\uc790\ub9ac\uc218\ub97c \ud45c\ud604\ud55c\ub2e4\uace0 \ud558\uba74,<\/h2>\n<\/div>\n<div class=\"article\" style=\"color: #666666;\">\n<div>\n<\/div>\n<div>\n<p>001,002,010 \ubb50 \uc774\ub7f0\uc2dd\uc73c\ub85c \ud45c\ud604\ud558\uace0 \uc2f6\uc744\ub54c\uac00 \uc788\ub2e4. (\uc77c\ub828\ubc88\ud638\ub4f1\uc744 \ud45c\uc2dc\ud560\ub54c )\n<\/p><\/div>\n<div>\n<\/div>\n<div>\n<p>\uc544\ub798\uc640 \uac19\uc774 \ud558\uba74 \uc27d\uac8c \ud45c\ud604\ud560 \uc218 \uc788\ub2e4.\n<\/p><\/div>\n<div>\n<\/div>\n<div>\n<div>\n<div class=\"txc-textbox\">\n<div>\n<p>int serial = 3;\n<\/p><\/div>\n<div>\n<p>String suffix = String.format(&#8220;%03d&#8221;, serial);\n<\/p><\/div>\n<div>\n<p>System.out.println(suffix);\n<\/p><\/div>\n<\/div>\n<p><span id=\"callbacknestbeanstistorycom11336\"><\/span>\n<\/div>\n<div>\n<p>\uacb0\uacfc\ub294 &#8220;003&#8221;\n<\/p><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc608\ub97c \ub4e4\uc5b4.. 3\uc790\ub9ac\uc218\ub97c \ud45c\ud604\ud55c\ub2e4\uace0 \ud558\uba74, 001,002,010 \ubb50 \uc774\ub7f0\uc2dd\uc73c\ub85c \ud45c\ud604\ud558\uace0 \uc2f6\uc744\ub54c\uac00 \uc788\ub2e4. (\uc77c\ub828\ubc88\ud638\ub4f1\uc744 \ud45c\uc2dc\ud560\ub54c ) \uc544\ub798\uc640 \uac19\uc774 \ud558\uba74 \uc27d\uac8c \ud45c\ud604\ud560 \uc218 \uc788\ub2e4. int serial = 3; String suffix = String.format(&#8220;%03d&#8221;, serial); System.out.println(suffix); \uacb0\uacfc\ub294 &#8220;003&#8221;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[15,7],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-5F","jetpack-related-posts":[{"id":701,"url":"https:\/\/blog.box.kr\/?p=701","url_meta":{"origin":351,"position":0},"title":"TOMCAT Virtual Host\ub9cc\ub4e4\uae30","date":"2015-04-15","format":false,"excerpt":"1.\u00a0${catalina.home}\/conf\/server.xml \ud654\uc77c\uc744 \uc5f4\uc5b4\uc11c \uc544\ub798\uc640 \uac19\uc774 \ubcc0\uacbd <Engine name=\"Catalina\"defaultHost=\"localhost\"debug=\"0\"> To <Engine name=\"Catalina\"defaultHost=\"www.example.com\"debug=\"0\"> ** \uc5ec\uae30\uc11c \uc9c0\uc815\ud55c defaultHost\ub294 \uc9c0\uc815\ub418\uc9c0 \uc54a\uc740 \uc0c1\ud0dc\ub85c \uc811\uc18d ( ie. IP\ub85c \uc811\uc18d \ub4f1 )\uc77c\ub54c \uae30\ubcf8\uc73c\ub85c \ubcf4\uc77c \uc0ac\uc774\ud2b8 2. \uc0ac\uc6a9\ud560 \uac00\uc0c1 \ud638\uc2a4\ud2b8 \uc815\ubcf4\ub97c \ucd94\uac00 <Host name=\"localhost\"debug=\"0\"appBase=\"webapps\" \u00a0unpackWARs=\"true\"autoDeploy=\"true\" \u00a0xmlValidation=\"false\"xmlNamespaceAware=\"false\"> To \u00a0 \u00a0<Host name=\"www.example.com\"debug=\"0\"appBase=\"public\" \u00a0 \u00a0 \u00a0 \u00a0unpackWARs=\"true\"autoDeploy=\"true\" \u00a0 \u00a0 \u00a0 \u00a0xmlValidation=\"false\"xmlNamespaceAware=\"false\">\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":257,"url":"https:\/\/blog.box.kr\/?p=257","url_meta":{"origin":351,"position":1},"title":"JQuery Ajax \ud1b5\uc2e0\uacfc Spring \uc778\uc218 \ucc98\ub9ac \ubc29\ubc95","date":"2014-07-24","format":false,"excerpt":"JQuery\uc758 Ajax\ud1b5\uc2e0\uc744 \ud558\uba74 \ud558\uae30\uc640 \uac19\uc774 \ubcf4\ub0b8\ub2e4. $.ajax({ type:\"POST\", url:'http:\/\/localhost:8180\/GisProject\/MainService', data:{mydata:JSON.stringify(params)}, datatype:\"json\", success:function(msg){ console.log(msg);}, error:function(xhr,status){ console.log(status);},}); \uc774 \uacbd\uc6b0 \u00a0Spring \uc758 \uae30\ubcf8 Parameter\ub85c\ub294 \ubc1b\uc744 \ubc29\ubc95\uc774 \uc5c6\ub2e4.. \uc65c \ub0d0\uba74. Requert.payload \ud615\uc2dd\uc73c\ub85c \ub118\uc5b4 \uac00\uae30 \ub54c\ubb38\uc5d0.. \u00a0 \uc774\ub97c \ubc1b\uae30 \uc704\ud574\uc120 \ud558\uae30\uc640 \uac19\uc740 \ucc98\ub9ac\uac00 \ud544\uc694 \ud558\ub2e4.. \/\/ Request playload Data \uac00\uc838\uc624\uae30. BufferedReader bfr= req.getReader(); \u00a0\/\/ getReader\ub97c\u2026","rel":"","context":"In &quot;JAVA&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":621,"url":"https:\/\/blog.box.kr\/?p=621","url_meta":{"origin":351,"position":2},"title":"[\ud38c]\uc81c  \ubaa9 : \uc601\uc5b4\uc778\ud130\ubdf0 \ubed4\ud55c \uc9c8\ubb38\uc5d0 \ub2a5\uc219\ud55c \ub2f5\ubcc0","date":"2015-03-13","format":false,"excerpt":"\uc81c\u00a0\u00a0\ubaa9 : \uc601\uc5b4\uc778\ud130\ubdf0 \ubed4\ud55c \uc9c8\ubb38\uc5d0 \ub2a5\uc219\ud55c \ub2f5\ubcc0 \u00a0\u00a0\uae00\uc4f4\uc774 :\u00a0Leon \u00a0\u00a0\u00a0\u00a0 \ub4f1\ub85d\uc77c : 07-08-15 02:41\u00a0\u00a0\u00a0\u00a0 \uc870\ud68c : 12194 \uc601\uc5b4 \uc11c\ub958\uc804\ud615\uc744 \ud1b5\uacfc\ud558\uace0 \ub09c \ud6c4\uc5d0\ub294 \uc601\uc5b4\uba74\uc811\uc758 \uad00\ubb38\uc774 \uae30\ub2e4\ub9ac\uace0 \uc788\ub2e4. \uc778\ud130\ubdf0 \uc900\ube44\ub97c \ud558\ub294\ub370 \uc788\uc5b4 \uc911\uc694\ud55c \uac83\uc740 \uc5ed\uc2dc \ub098\ub97c \uc815\ud655\ud788 \ud30c\uc545\ud558\uace0 \ub610 \uadf8 \ud68c\uc0ac\uc5d0\uc11c \uc6d0\ud558\ub294 \uc778\uc7ac\uac00 \uc5b4\ub5a4 \uac83\uc778\uc9c0\ub97c \uc815\ud655\ud788 \ud30c\uc545\ud558\ub294 \uac83\uc774\ub2e4.\u00a0 1. \uc9c8\ubb38\uc758 \uc758\ub3c4\ub97c \ud30c\uc545\ud55c\ub2e4.\u2026","rel":"","context":"In &quot;\uc77c\uc0c1&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":720,"url":"https:\/\/blog.box.kr\/?p=720","url_meta":{"origin":351,"position":3},"title":"[\ud38c]Java \uc5d0\uc11c DataBase Replication Master\/Slave (write\/read) \ubd84\uae30 \ucc98\ub9ac\ud558\uae30","date":"2015-04-15","format":false,"excerpt":"http:\/\/kwon37xi.egloos.com\/ \ub300\uaddc\ubaa8 \uc11c\ube44\uc2a4 \uac1c\ubc1c\uc2dc\uc5d0 \uac00\uc7a5 \uae30\ubcf8\uc801\uc73c\ub85c \ud558\ub294 \ud29c\ub2dd\uc740 \ubc14\ub85c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0\uc11c Write\uc640 Read DB\ub97c Replication(\ub9ac\ud50c\ub9ac\ucf00\uc774\uc158)\ud558\uace0 \uc4f0\uae30 \uc791\uc5c5\uc740 Master(Write)\ub85c \ubcf4\ub0b4\uace0 \uc77d\uae30 \uc791\uc5c5\uc740 Slave(Read)\ub85c \ubcf4\ub0b4\uc5b4 \ubd80\ud558\ub97c \ubd84\uc0b0 \uc2dc\ud0a4\ub294 \uac83\uc774\ub2e4. \ud2b9\ud788 \ub300\ubd80\ubd84\uc758 \uc11c\ube44\uc2a4\ub294 \uc77d\uae30\uac00 \uc555\ub3c4\uc801\uc73c\ub85c \ub9ce\uae30 \ub54c\ubb38\uc5d0\u00a0 Slave\ub294 \uc5ec\ub7ec \ub300\ub97c \ub450\uc5b4 \uc77d\uae30 \ubd80\ud558\ub97c \ubd84\uc0b0 \uc2dc\ud0a8\ub2e4. \uadf8\ub7f0\ub370 \ub610 \ud558\ub098 \uae30\uc5b5\ud574\uc57c \ud560 \uac83\uc774 Replication\uc740 \ube44\ub85d \uc9e7\ub354\ub77c\ub3c4\u2026","rel":"","context":"In &quot;JAVA&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":819,"url":"https:\/\/blog.box.kr\/?p=819","url_meta":{"origin":351,"position":4},"title":"[scrap] \uc791\uc740 \ud68c\uc0ac\uac00 \uaf2d \uc54c\uc544\uc57c \ud560 \ud074\ub77c\uc6b0\ub4dc \uae30\ubc18 \uc0ac\ub0b4\ud611\uc5c5 \uc2dc\uc2a4\ud15c","date":"2015-05-20","format":false,"excerpt":"\uc694\uc998 \uac19\uc740 \uc801\uc2dc \ud0c0\uc774\uc784\uc744 \ucd94\uad6c\ud558\ub294 \ube44\uc9c0\ub2c8\uc2a4 \ud658\uacbd\uc5d0 \uc5b4\uc6b8\ub9ac\ub294 \ud611\uc5c5 \ub3c4\uad6c\ub4e4\uc5d0 \ub300\ud55c \uc774\uc57c\uae30. \uc77c\uc744 \ud574\uc57c\uc9c0 \ud234\uc744 \ub9cc\ub4dc\ub294 \ud68c\uc0ac\uac00 \ub418\uc9c0 \ub9d0\uc544\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0 \uac00\uae09\uc801 \uc678\ubd80 \uc11c\ube44\uc2a4\ub97c \ud65c\uc6a9\ud55c\ub2e4. \ub204\uad70\uac00 \uadf8\ub7ac\ub2e4.. \ub3c8\uc740 \uc2dc\uac04\uc744 \uc904\uc774\ub294\ub370 \uc0ac\uc6a9 \ud574\uc57c \ud55c\ub2e4\uace0.. \u00a0 http:\/\/ppss.kr\/archives\/44606 1. \uc790\ub8cc \uacf5\uc720: \ucee8\ud50c\ub8e8\uc5b8\uc2a4 \ubaa8\ub4e0 \uc790\ub8cc\ub294 \ucee8\ud50c\ub8e8\uc5b8\uc2a4\uc5d0 \uc62c\ub9ac\uace0, \uadf8 \ub9c1\ud06c\ub97c \uc774\uba54\uc77c\ub85c \uacf5\uc720\ud55c\ub2e4. \uc774\uba54\uc77c\ub85c \ucca8\ubd80\ud30c\uc77c\uc744 \ubcf4\ub0b4\ub294\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"confluence-team-collaboration-knowledge-management","src":"https:\/\/i0.wp.com\/ppss.kr\/wp-content\/uploads\/2015\/05\/confluence-team-collaboration-knowledge-management.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":590,"url":"https:\/\/blog.box.kr\/?p=590","url_meta":{"origin":351,"position":5},"title":"[\ud38c]Java \uc5d0\uc11c DataBase Replication Master\/Slave (write\/read) \ubd84\uae30 \ucc98\ub9ac\ud558\uae30 \ud504\ub85c\uadf8\ub798\ubc0d","date":"2015-01-30","format":false,"excerpt":"Cloud\ud658\uacbd\uc5d0\uc11c DB\ub97c \uc0ac\uc6a9\ud558\ub2e4\ubcf4\ub2c8 Disk I\/O\ub098 \ub108\ubb34 \ub290\ub824\uc11c \ub9ce\uc740 \uace0\ubbfc\uc744 \ud558\uac8c \ub410\ub2e4. \uc77c\ub2e8 \uc0dd\uac01\ub098\ub294\uac83\uc774 \ub9ce\uc774 \ub4e4 \ud558\ub294 Replication\uc744 \uc774\uc6a9\ud55c \ubd80\ud558\ubd84\uc0b0 ( Master\ub294 Insert\/Update\ub9cc, Slave\ub294 SELECT\ub9cc ) \uadf8\ub7f0\ub370 \ub9c9\uc0c1 \ud560\ub824\uba74 \uc774\uac83 \uc800\uac83 \uc190\uc774 \ub9ce\uc774 \uac04\ub2e4.. \uadf8\ub798\uc11c.. \uc0dd\uac01\ub9cc \ud558\uace0 \uc801\uc6a9\uc744 \uc548\ud588\uc5c8\ub294\ub370.. \u00a0 \uc6f9\uc11c\ud551\uc744 \ud558\ub2e4\uac00 \uc774\ub7f0 \uae00\uc744 \ubc1c\uacac.. \uc544!! \uc774\ub807\uac8c \uc88b\uc744 \uc218\uac00.. \u00a0 \uc5ed\uc2dc\u2026","rel":"","context":"In &quot;JAVA&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/351"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=351"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}