ÈçºÎÓÃJavaƽ̨·ÃÎÊ¿ªÔ´ÔÆ´æ´¢£¿
¾¡¹ÜÔƼÆËãÕâÒ»ÊõÓï²¢²»ÐÂÏÊ(AmazonÔÚ2006Äê¾Í¿ªÊ¼ÌṩËüµÄÔÆ·þÎñ)£¬µ«´Ó2008ÄêÆðËü²Å¿ªÊ¼ÕæÕý³ÉΪÁ÷Ðдʣ¬ÕâÆڼ䣬GoogleºÍ
AmazonµÄÔÆ·þÎñÖð½¥»ñµÃÁ˹«ÖڵĹØ×¢¡£ GoogleµÄApp EngineʹÓû§Äܹ»ÔÚGoogle»ù´¡ÉèÊ©ÉϹ¹½¨ºÍÍÐ¹Ü Web Ó¦ÓóÌÐò¡£
¡¡¡¡Á¬Í¬S3£¬AmazonWeb Services»¹°üÀ¨Elastic Cloud Compute
(EC2)¼ÆËãWeb·þÎñ£¬¸Ã·þÎñ¿ÉÒÔÔÚAmazonµÄ»ù´¡ÉèÊ©ÉÏÍйÜÓ¦ÓóÌÐò¡£ÆäËû¹«Ë¾Ò²¿ªÊ¼´À´ÀÓû¶¯£¬×¼±¸ÓëAmazonºÍGoogleÒ»¾ö¸ßÏ£¬Æä
ÖоͰüÀ¨ Microsoft®µÄ Azure£¬ÉõÖÁ Sun
Microsystems(ÆäÔƼÆË㻹ûÓÐÕýʽÍÆÏòÊг¡)Ò²Ïë·ÖÒ»±¸þ¡£ÀýÈçIBM×î½üÐû²¼£¬Ëü½«ÌṩijЩ²úÆ·¹©¿ª·¢ÈËÔ±ÔÚAmazonEC2
»·¾³ÖÐʹÓá£
¡¡¡¡AmazonSimple Storage Service
(S3)ÊÇÒ»¸ö¹«¿ªµÄ·þÎñ£¬WebÓ¦ÓóÌÐò¿ª·¢ÈËÔ±¿ÉÒÔʹÓÃËü´æ´¢Êý×Ö×ʲú£¬°üÀ¨Í¼Æ¬¡¢ÊÓƵ¡¢ÒôÀÖºÍÎĵµ¡£S3Ìṩһ¸ö RESTful
APIÒÔ±à³Ì·½Ê½ÊµÏÖÓë¸Ã·þÎñµÄ½»»¥¡£Í¨¹ý±¾ÎÄ£¬Äú½«Á˽âÈçºÎʹÓÿªÔ´µÄJetS3t¿âÀûÓÃAmazonµÄS3ÔÆ·þÎñ´æ´¢ºÍ¼ìË÷Êý¾Ý¡£
¡¡¡¡ÃæÏò¿ªÔ´µÄS3ÔÆƽ̨½éÉÜ
¡¡¡¡ÔÆÊÇÒ»¸ö³éÏóµÄ¸ÅÄ±íʾËÉÉ¢Á¬½ÓÔÚÒ»ÆðµÄ¼ÆËã»ú×飬ÕâЩ¼ÆËã»ú¹²Í¬Ö´ÐÐijÏîÈÎÎñ»òÕß·þÎñ£¬¾ÍÏñÊÇʹÓÃÒ»¸öµ¥¶ÀµÄʵÌåÍê³ÉÒ»Ñù¡£´Ë¸ÅÄî±³ºóµÄ¼Ü
¹¹Ò²ºÜ³éÏó£ºÃ¿¸öÔÆÌṩÕ߶¼¿ÉÒÔ¸ù¾Ý¸÷×ÔÇé¿öËæÒâÉè¼ÆËüµÄ²úÆ·¡£Èí¼þ¼´·þÎñ(Software as a
Service£¬SaaS)ÊÇÒ»¸öÓëÔÆÏà¹ØµÄ¸ÅÄ±íʾÔÆÏòÓû§ÌṩijÖÖ·þÎñ¡£ÔÆÄ£ÐÍ¿ÉÒÔ½µµÍÓû§³É±¾£¬ÒòΪËûÃÇÎÞÐ蹺ÂòÈí¼þºÍÓ²¼þÒ²¿ÉÒÔÔËÐÐ —
·þÎñÌṩÕßÒѾΪÓû§ÌṩÁ˱ØÒªµÄ×é¼þ¡£
¡¡¡¡ÒÔAmazonµÄS3²úƷΪÀý¡£¹ËÃû˼Ò壬ÕâÊÇÒ»¸ö¹«¿ªµÄ·þÎñ£¬Ê¹ Web
¿ª·¢ÈËÔ±Äܹ»´æ´¢Êý×Ö×ʲú(ÈçͼƬ¡¢ÊÓƵ¡¢ÒôÀÖºÍÎĵµµÈ)£¬ÒÔ±ãÔÚÓ¦ÓóÌÐòÖÐʹÓá£Ê¹ÓÃS3ʱ£¬Ëü¾ÍÏñÒ»¸öλÓÚ Internet
µÄ»úÆ÷£¬ÓÐÒ»¸ö°üº¬Êý×Ö×ʲúµÄÓ²ÅÌÇý¶¯¡£Êµ¼ÊÉÏ£¬ËüÉæ¼°µ½Ðí¶à»úÆ÷(λÓÚ¸÷¸öµØÀíλÖÃ)£¬ÆäÖаüº¬Êý×Ö×ʲú(»òÕßÊý×Ö×ʲúµÄijЩ²¿·Ö)¡£Amazon»¹´¦
ÀíËùÓи´ÔӵķþÎñÇëÇ󣬿ÉÒÔ´æ´¢Êý¾Ý²¢¼ìË÷Êý¾Ý¡£ÄúÖ»ÐèÒª¸¶ÉÙÁ¿µÄ·ÑÓÃ(´óԼÿÔ 15 ÃÀ·Ö /GB)¾Í¿ÉÒÔÔÚAmazonµÄ·þÎñÆ÷ÉÏ´æ´¢Êý¾Ý£¬1
ÃÀÔª¼´¿Éͨ¹ýAmazon·þÎñÆ÷´«ÊäÊý¾Ý¡£
¡¡¡¡AmazonµÄS3·þÎñûÓÐÖظ´¿ª·¢£¬Ëü¹«¿ªÁËRESTful API£¬Ê¹ÄúÄܹ»Ê¹ÓÃÈκÎÖ§³Ö HTTP ͨÐŵÄÓïÑÔ·ÃÎÊS3¡£
JetS3tÏîÄ¿ÊÇÒ»¸ö¿ªÔ´Java¿â£¬¿ÉÒÔ³éÏó³öʹÓÃS3µÄRESTful¡¡APIµÄϸ½Ú£¬½«API¹«¿ªÎª³£¼ûµÄJava·½·¨ºÍÀà¡£±àдµÄ´úÂëÔ½ÉÙÔ½
ºÃ£¬ÄѵÀ²»ÊÇÂð?³ä·ÖÀûÓÃÆäËûÈ˵ijɹûÒ²ÊDz»´íµÄ¡£Ô
Ïà¹ØÎĵµ£º
´ó¼ÒºÃ£¬ÎÒÊÇ´«ÖDz¥¿ÍJava 11.30ÆÚ¾ÍÒµ°àµÄÒ»ÃûѧԱ¡£ÂíÉϾÍÒª½øÈë´«ÖDz¥¿Í¾ÍÒµ°àµÄѧϰÁË£¬×î½üÎÒÔÚ¸´Ï°Java»ù´¡¿Î³Ì£¬Ï£ÍûÄܹ»´òºÃ»ù´¡£¬»ý¼«Å¬Á¦µÄ½øÈë¾ÍÒµ°àµÄѧϰ¡£
½ñÌìºÜ¸ßÐËÌýÁËÕÅТÏéÀÏʦµÄ½²¿ÎÊÓƵ£¬¸Ð¾õÕÅТÏéÀÏʦµÄ½²¿Î·Ç³£Çå³þ¡¢Ï¸Ö£¬½²Ò»Ð©ÄÑÀí½âµÄ֪ʶµãʱ£¬ÎªÁËÈÃÎÒÃÇÄܹ»Àí½â£¬ÕÅТÏéÀÏʦ ......
ת×Ô£ºhttp://blog.csdn.net/felomeng/archive/2009/10/17/4688257.aspx
ÔÚeclipseÏÂʹÓÃjavaµ÷ÓÃweka ÊÕ²Ø
wekaÊǺܺÃÓõĻúÆ÷ѧϰ¿â£¬ÕâÀï¾Í²»Ïêϸ½éÉÜÁË¡£
ÑÔ¹éÕý´«£¬ÒªÊ¹ÓóÌÐò·½Ê½Ê¹ÓÃweka£¬²½ÖèÈçÏ£º
Ò»¡¢ÔÚeclipseÀïн¨Ò»¸öjava project£º
1. ½¨Á¢¹¤³Ì£ºµ¥»÷²Ëµ¥ÖÐfil ......
javaÉÏ´«Îļþ
ÐèÒªµÄµÚÈý·½jar°üÓУ¨ÕâÀïʹÓÃapacheµÄ£©
apacheµÄcommons-fileupload£¨ÉÏ´«Óã©£¬commons-io £¨listenerÇåÀíÀàÓã© £¬ commons-beanutils£¨¿ÉÑ¡£©
¾ßÌå²Ù×÷
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
if(ServletFileUp ......
javaµÄд·¨
/**
*
* @param location
* @param nameList±£´æ½á¹ûµÄ£¡
*/
public void listDict(String location, List<String> nameList) {
File fileList = new File(location);
if (fileList.isDirectory()) {
File[] files = fileList.listFiles();
for (File f : files) {
i ......
ÏÈѧϰj2se
Ҫѧϰj2ee¾ÍÒªÏÈѧϰj2se£¬¸Õ¿ªÊ¼Ñ§Ï°j2seÏȽ¨Ò鲻ҪʹÓÃIDE£¬È»ºó½¥½¥µÄ¹ý¶Éµ½Ê¹ÓÃIDE¿ª·¢£¬±Ï¾¹ÓÃËü·½±ãÂѧϰj2seÍƼöÁ½±¾Ê飬¡¶java2ºËÐļ¼ÊõÒ»¶þ¾í¡·£¬¡¶java±à³Ì˼Ïë¡·£¬¡¶javaģʽ¡·¡£ÆäÖС¶java±à³Ì˼Ïë¡·ÒªÑжÁ£¬¾«¶Á¡£ÕâÒ»¶Îʱ¼äÊÇ»ù±¾¹¦Ñ§Ï°£¬Ê±¼ä»áºÜ³¤£¬Ò²¿ÉẠ̈ܺܶ¬ÕâÒª¿´Ñ§Ï°Õß×ÔÉíˮƽ¶ø ......