Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaÖзÃÎÊmemcache

ÓÃspyºÍmemcached for  javaÁ½ÖÖ·½Ê½¶Ômemcache½øÐвÙ×÷
Ò»¡¢spy
package com.test.memcache;
import java.net.InetSocketAddress;
import java.util.concurrent.Future;
import net.spy.memcached.MemcachedClient;
/**
 * ±¾ÀàÓõİüÊÇmemcached-2.4.1.jar
 *  ÏÂÔصØÖ·£º http://code.google.com/p/spymemcached/
 */
public class SpyTest {
    public void putObject() {
        try {
            /* ½¨Á¢MemcachedClient ʵÀý£¬²¢Ö¸¶¨memcached·þÎñµÄIPµØÖ·ºÍ¶Ë¿ÚºÅ */
            MemcachedClient mc = new MemcachedClient(new InetSocketAddress("127.0.0.1", 11211));
            Future<Boolean> b = null;
            /* ½«keyÖµ£¬¹ýÆÚʱ¼ä(Ãë)ºÍÒª»º´æµÄ¶ÔÏósetµ½memcachedÖÐ */
            b = mc.set("key1", 60, "hello1"); // Èç¹ûÒÔÇ°´æÔÚ£¬Ôò»á×Ô¶¯¸²¸Ç
            if (b.get().booleanValue() == true) {
                mc.shutdown();
            }
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
    public void getObject() {
        try {
            /* ½¨Á¢MemcachedClient ʵÀý£¬²¢Ö¸¶¨memcached·þÎñµÄIPµØÖ·ºÍ¶Ë¿ÚºÅ */
            MemcachedClient mc = new MemcachedClient(new InetSocketAddress("127.0.0.1", 11211));
            /* °´ÕÕkeyÖµ´ÓmemcachedÖвéÕÒ»º´æ£¬²»´æÔÚÔò


Ïà¹ØÎĵµ£º

²»ÓÃMyEclipseÔÚEclipseÏ´Java web¿ª·¢»·¾³

http://wsc830719.javaeye.com/blog/523873
http://topic.csdn.net/u/20100406/01/e8fa95e2-417d-4706-98a0-2288970697f2.html
http://javafoot.blog.hexun.com/3905915_d.html
http://wiki.apache.org/tapestry/HowToSetupEclipseWtp
ÔÚEclipseÏ°²×°Tomcat²å¼þ
http://hi.baidu.com/tianlan133/blog/item/ad4c2699ea ......

JavaÐòÁл¯µÄ»úÖƺÍÔ­Àí

ÓйØJava¶ÔÏóµÄÐòÁл¯ºÍ·´ÐòÁл¯Ò²ËãÊÇJava»ù´¡µÄÒ»²¿·Ö£¬ÏÂÃæ¶ÔJavaÐòÁл¯µÄ»úÖƺÍÔ­Àí½øÐÐһЩ½éÉÜ¡£
¡¡¡¡JavaÐòÁл¯Ë㷨͸Îö
¡¡¡¡Serialization£¨ÐòÁл¯£©ÊÇÒ»ÖÖ½«¶ÔÏóÒÔÒ»Á¬´®µÄ×Ö½ÚÃèÊöµÄ¹ý³Ì£»·´ÐòÁл¯deserializationÊÇÒ»ÖÖ½«ÕâЩ×Ö½ÚÖؽ¨³ÉÒ»¸ö¶ÔÏóµÄ¹ý³Ì¡£JavaÐòÁл¯APIÌṩһÖÖ´¦Àí¶ÔÏóÐòÁл¯µÄ±ê×¼»úÖÆ¡£ÔÚÕâÀ ......

ImageMagick for java ʹÓÃJmagick´¦Àí¸ßÖÊÁ¿Í¼Æ¬

ÔÚ×öpdfÎĵµ×ª³ÉjpgµÄʱºò£¬·¢ÏÖÁËJmagickµÄ´´½¨¸ßÖÊÁ¿µÄͼƬµÄÒ»¸öjavaÀà¿â,×Ô¼ºÒÔǰʹÓÃÁíÍâµÄÒ»¸öÀà¿â,¸Ð¾õÕâ¸ö¸üºÃµã,¾ÍÊÔ×ÅÓÃÁËÏÂ,¸Ð¾õ²»´í
1.ʹÓõÄwindowsϵÄjmagick-win-6.3.9-Q16.zip µØÖ·ÊÇ£ºhttp://downloads.jmagick.org/6.3.9/
2.doc¶ÔÓ¦µÄapiµØÖ·£ºhttp://downloads.jmagick.org/jmagick-doc/
3.°²×°Ima ......

¡¶JAVAºËÐļ¼Êõ¡·¹Ûºó¸Ð


JAVAºËÐļ¼Êõ¹Ûºó¸Ð
  ÕâÖÜ´ó¼Ò¶¼»ù±¾ÉÏÂòÁËÒ»±¾¡¶JAVAºËÐļ¼Êõ¡·À´¿´£¬ËäÈ»ÎÒµÄÊéÏÂÖܲÅÄÜÄõ½£¬µ«ÊÇÎÒ»¹ÊÇ·­ÁËϱðÈ˵ģ¬´óÖÂÁ˽âÁËÒ»ÏÂÀïÃæµÄÄÚÈÝ¡£ÒÔϾÍÊÇÎÒ´Ö²ÚµÄÕûÀí¡£
JAVA²¢²»Ö»ÊÇÒ»ÖÖÓïÑÔ£¬¶øÊÇÒ»¸öÍêÕûµÄƽ̨£¬ÓÐÒ»¸öÅÓ´óµÄ¿â£¬ÆäÖаüº¬ºÜ¶à¿ÉÒÔÖØÓõĴúÂëºÍÒ»¸öÌṩÖîÈ簲ȫÐÔ£¬¿ç²Ù×÷ϵͳµÄ¿ÉÒÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ