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

½áºÏ·´ÉäÓë XML ʵÏÖ Java ±à³ÌµÄ¶¯Ì¬ÐÔ

·´ÉäÊÇ Java ÓïÑÔ±»ÊÓΪ¶¯Ì¬»ò×¼¶¯Ì¬ÓïÑÔµÄÒ»¸ö¹Ø¼üÐÔÖÊ£¬½áºÏ·´ÉäºÍ XML »á°ïÖúÎÒÃǸü¿ì¡¢¸ü·½±ãµØʵÏÖһЩ¶¯Ì¬´úÂ룬´Ó¶ø½â¾ö±à³ÌÖпÉÄÜÓöµ½µÄ²»È·¶¨ÎÊÌâ¡£±¾ÎĽ«½áºÏ·´ÉäÓë XML ¶Ô Java ±à³ÌµÄ¶¯Ì¬ÐÔ½øÐÐÉîÈëdz³öµÄÌÖÂÛ¡£ÔÚÀí½â±¾ÎĵÄ˼ÏëÖ®ºó£¬Äú¿ÉÒÔ½«ÆäÓ¦Óõ½³ÌÐòÖÐÒÔ´´½¨Áé»îµÄ´úÂë¡£
ÒýÑÔ
ÔÚÏÖʵÉú»îÖУ¬¾­³£»á·¢ÉúÕâÖÖÇé¿ö¡£ÎÒҪȥÉ̳¡Âò²ËÀ´×¼±¸Íí²Í£¬ÎÒ²»ÖªµÀÂòʲô£¬µ«ÊǽøÈëÉ̳¡Ö®Ç°ÎÒ»áËæÊÖÄÃÒ»¸ö¹ºÎï¿ðÀ´×°×îÖÕ¾ö¶¨ÒªÂòµÄÎïÆ·£¬ÕâÑù²»¹ÜÎÒÂòʲô¶¼¿ÉÒÔ·ÅÈëÆäÖУ¬½áÕËÖ®ºó¾Í¿ÉÒÔ´ø»Ø¼Ò×¼±¸Íí·¹¡£ÔÚ¿ª·¢³ÌÐò¹ý³ÌÖУ¬Ò²»áÓöµ½ÀàËÆÇé¿ö¡£ÓÐʱÎÒÃDz»ÄÜÈ·¶¨ÀàµÄÃû³Æ¡¢ÀàÓÐÄÄЩÊôÐÔÒÔ¼°ÊôÐÔµÄÖµµÈ£¬ÕâЩÄÚÈÝÖ»Óе½ÔËÐеÄʱºò²ÅÄÜÈ·¶¨¡£ÕâÖÖÇé¿öÏ£¬²»Äܽ«ÀàµÄÃû³ÆÖ±½Ó¹Ì»¯£¬ÄÇôÔõÑù²ÅÄܽâ¾öÕâÖÖÎÊÌâÄØ£¿Æäʵ¿ª·¢³ÌÐòÓëÏÖʵÉú»îÓÐÏàËÆÖ®´¦¡£ÔÚ±à³ÌÖ®ÖУ¬¹ºÎï¿ð¾ÍºÃ±ÈÊÂÏÈ×¼±¸ºÃµÄͨÓýӿڣ¬Õâ¸ö½Ó¿Ú¿ÉÒÔÓ÷´ÉäµÄ»úÖÆÀ´ÊµÏÖ£¬¶ø¹ºÎï¿ðÖеIJ˿ÉÒÔÓÉ XML ÎļþÀ´ÃèÊö£¬ÕâÑù²»¹ÜÂòµÄ²ËÊÇʲô£¬ÎÒ¶¼¿ÉÒÔ´Ó¹ºÎï¿ðÖÐÈ¡³ö½ø¶ø×¼±¸Íí²Í¡£
»ùÓÚÉÏÊöÎÊÌ⣬±¾ÎĽ«½áºÏ·´ÉäÓë XML ¶Ô Java ±à³ÌµÄ¶¯Ì¬ÐÔ½øÐÐÉîÈëdz³öµÄÌÖÂÛ¡£ÔÚÀí½â±¾ÎĵÄ˼ÏëÖ®ºó£¬Äú¿ÉÒÔ½«ÆäÓ¦Óõ½³ÌÐòÖÐÒÔ´´½¨Áé»îµÄ´úÂë¡£
¼òҪ˵Ã÷
·´ÉäÊÇ Java ÓïÑÔ±»ÊÓΪ¶¯Ì¬»ò×¼¶¯Ì¬ÓïÑÔµÄÒ»¸ö¹Ø¼üÐÔÖÊ£¬Í¨¹ýÕâ¸ö»úÖÆÎÒÃÇ¿ÉÒÔÔÚÔËÐÐʱ¼ÓÔØ¡¢Ì½Öª¡¢Ê¹ÓñàÒëÆÚ¼äÍêȫδ֪µÄÀà¡£Õâ¸ö»úÖÆÔÊÐí³ÌÐòÔÚÔËÐÐʱ·´Éä¼ÓÔØÒ»¸öÀà»ò͸¹ý Reflection API È¡µÃÈκÎÒ»¸öÒÑÖªÃû³ÆµÄÀàµÄÄÚ²¿ÐÅÏ¢£¬°üÀ¨Æä modifiers£¨ÀýÈç public,static µÈµÈ£©¡¢superclass£¨ÀýÈç Object£©¡¢ÊµÏÖÖ® interfaces£¨ÀýÈç Cloneable£©£¬Ò²°üÀ¨ fields ºÍ methods µÄËùÓÐÐÅÏ¢¡£Èç¹ûÎÒÃÇÀûÓ÷´Éä½áºÏ XML ÖеÄһЩÅäÖÃÐÅÏ¢£¬¾Í¿ÉÒÔ×öµ½ÔËÐÐʱ¼ÓÔØ¡¢Ì½ÖªºÍ×°ÅäÀ࣬½«²»¿ÉÈ·¶¨µÄÒòËØÔÚÔËÐÐʱȷ¶¨»¯¡£
Èç¹ûÏëÁ˽â¸ü¶à¹ØÓÚ Java ±à³Ì¶¯Ì¬ÐÔµÄÄÚÈÝ£¬Äú¿ÉÒԲο¼ Dennis Sosnoski ¹ØÓÚ Java ±à³Ì¶¯Ì¬·½Ãæ µÄϵÁÐÎÄÕ¡£ÁíÍ⣬±¾ÎĽ«Ê¹Óà dom4j ¶Ô XML Îļþ½øÐдæÈ¡²Ù×÷¡£dom4j ÊÇÒ»¸ö·Ç³£·Ç³£ÓÅÐãµÄ Java XMLAPI£¬¾ßÓÐÐÔÄÜÓÅÒì¡¢¹¦ÄÜÇ¿´óºÍ¼«¶ËÒ×ÓÃʹÓõÄÌص㡣Èç¹ûÄú»¹Ã»ÓÐ dom4j.jar£¬ÄÇôÇëÏÈ ÏÂÔØ DOM4J ²¢½«Æäµ¼Èëµ½ÄúµÄ¹¤³ÌÖС£ÎªÁËÖ§³Ö xpath£¬Äú»¹ÐèÒª ÏÂÔØ jaxen-xxx.jar ²¢½«Æäµ¼Èëµ½¹¤³Ì¡£
ʾÀý¿ª·¢
»ùÓÚÉÏÊöÎÊÌ⣬ΪÁ˱ãÓÚÀí½â¸Ã½â¾ö·½°¸£¬ÎÒÃDZàд¼òµ¥µÄʾÀý´úÂëÀ´½øÐвûÊö¡£
¶ÔÓÚ¹ºÎï¿ð£¬ÓÃÀà Basket À´´ú±í£¬Æä´úÂëÈçÏÂËùʾ£¬°üÀ


Ïà¹ØÎĵµ£º

java socket¶àÏß³Ì ½ÓÊÕxml

java socket¶àÏß³Ì ½ÓÊÕxml
2009-08-21 17:25
Õâ¶Îʱ¼ä×öÁ˸öÏîÄ¿£¬²»¹ý¾õµÃÒ»Ö±ÊÇÎÒÔÚд£¬ÎÒÃÇ×ܼàÔٸġ£¡£¿´Ñù×Ó×Ô¼ºµÄ´úÂëÄÜÁ¦Ì«²îÁË¡£¶øÇÒÂÒÆß°ËÔãµÄÀ²¡£¡£
ÏÖ½«´úÂë·ÖÏíÒ»Ï塃 £ºÊÇ´Ó¿Í»§¶Ë½ÓÊÕxml½øÐÐÒ»¶¨µÄ½âÎö£¬È»ºóÈë¿â×îºó·µ»Ø°É Öм临ÔÓµÄÂß¼­¾Í²»ËµÁË ¡£¡£¡£
SocketServer.java
package com.socket;
imp ......

Java WebÖнâ¾öÖÐÎÄÂÒÂë

ÔÚMVCÖÐÅäÖñàÂëfilter¿ÉÒÔ½â¾öÖÐÎÄÂÒÂëÎÊÌâ
--------------------------------------------------------------------------------------------------------------------------------------------------
ÔÚweb.xmlÖмÓÈëÈçÏÂfilter´úÂ룺
    <!--Form content submit encoding filter start-->
& ......

java ioc³õѧ

Ò»¡¢Ê²Ã´ÊÇIOC
IoC¾ÍÊÇInversion of Control£¬¿ØÖÆ·´×ª¡£ÔÚJava¿ª·¢ÖУ¬IoCÒâζ׎«ÄãÉè¼ÆºÃµÄÀཻ¸øϵͳȥ¿ØÖÆ£¬¶ø²»ÊÇÔÚÄãµÄÀàÄÚ²¿¿ØÖÆ¡£Õâ³ÆΪ¿ØÖÆ·´×ª¡£
ÏÂÃæÎÒÃÇÒÔ¼¸¸öÀý×ÓÀ´ËµÃ÷ʲôÊÇIoC
¼ÙÉèÎÒÃÇÒªÉè¼ÆÒ»¸öGirlºÍÒ»¸öBoyÀ࣬ÆäÖÐGirlÓÐkiss·½·¨£¬¼´GirlÏëÒªKissÒ»¸öBoy¡£ÄÇô£¬ÎÒÃǵÄÎÊÌâÊÇ£¬GirlÈçºÎÄܹ»ÈÏÊ ......

JAVAÖ®IOÁ÷(³¬ÏêϸµÄJava.io°üµÄ½éÉÜ!)

JAVAÖ®IOÁ÷(³¬ÏêϸµÄJava.io°üµÄ½éÉÜ!)
Ò».InputºÍOutput
1.stream´ú±íµÄÊÇÈκÎÓÐÄÜÁ¦²ú³öÊý¾ÝµÄÊý¾ÝÔ´£¬»òÊÇÈκÎÓÐÄÜÁ¦½ÓÊÕÊý¾ÝµÄ½ÓÊÕÔ´¡£
ÔÚJavaµÄIOÖУ¬ËùÓеÄstream£¨°üÀ¨InputºÍOut stream£©¶¼°üÀ¨Á½ÖÖÀàÐÍ£º
1.1 ÒÔ×Ö½ÚΪµ¼ÏòµÄstream
ÒÔ×Ö½ÚΪµ¼ÏòµÄstream£¬±íʾÒÔ×Ö½ÚΪµ¥Î»´ÓstreamÖжÁÈ¡»òÍùstreamÖÐдÈëÐÅÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ