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

Java´úÂëʵÏÖÒÀÀµ×¢Èë

Java´úÂëʵÏÖÒÀÀµ×¢Èë
2009-01-15 08:18:55
¡¡±êÇ©£ºÒÀÀµ×¢Èë¡¡¡¡¡¡[ÍÆË͵½¼¼ÊõȦ]
°æȨÉùÃ÷£ºÔ­´´×÷Æ·£¬ÔÊÐíתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕ ԭʼ³ö´¦ ¡¢×÷ÕßÐÅÏ¢ºÍ±¾ÉùÃ÷¡£·ñÔò½«×·¾¿·¨ÂÉÔðÈΡ£http://zhangjunhd.blog.51cto.com/113473/126545
v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);}
st1\:*{behavior:url(#ieooui) }
ÕâÀォģ·ÂSpringʵÏÖÒ»ÖÖ»ùÓÚxmlÅäÖÃÎļþµÄÒÀÀµ×¢Èë»úÖÆ¡£ÎļþÖн«ÊµÏÖ3ÖÐ×¢È룬һÊǵ¥Öµ×¢È룬°üÀ¨int,float£¬double£¬charµÈ£¬Ò²°üÀ¨String×¢È룻¶þÊÇJavaÈÝÆ÷×¢È룬°üÀ¨List£¬Set£¬MapÈýÖÖÈÝÆ÷µÄ×¢È룬×îºóÒ»ÖÖÊÇjava bean¶ÔÏó×¢Èë¡£
ʵÏֵĻúÖÆÊÇ£¬Ê¹ÓÃDom4j¶ÔxmlÅäÖÃÎļþ½øÐнâÎö£¬ÕâÀïʹÓÃdom4jµÄElement Handler»úÖÆ£¬Ò»ÖÖÀàËÆÓëÔðÈÎÁ´Ä£Ê½µÄʵÏÖ»úÖÆ£»¶ÔÓÚjava¶ÔÏóµÄ¹¹½¨Ê¹Ó÷´Éä»úÖÆ£¬ÕâÀïÖ÷ÒªÊÇÕë¶ÔµÃµ½µÄÀàµÄField½øÐÐset¸³Öµ¡£ÎÒÊÔͼͨ¹ýµ÷ÓÃMethodµÄinvoke·½·¨µ÷ÓÃÀà±¾ÉíµÄsetter·½·¨£¬µ«ÊÇÓÉÓÚͨ¹ýxml½âÎöµÃµ½µÄÖµ¶¼ÊÇString£¬Èç¹û½«ÕâЩString¶¯Ì¬µÄת»»ÎªÏàÓ¦µÄÈ·¶¨ÀàÐÍÊǸöÄѵ㣬MethodµÄinvoke·½·¨£¬Èç¹ûÐβÎÊÇint£¬¶ø´«Èëjava.lang.Integer£¬Ëü²»»áÈÏ£¬ËùÒÔ³¢ÊÔʧ°Ü£¬Ö»ÄÜͨ¹ýFieldµÄset·½·¨´«ÈëÌض¨Öµ¡£
 
ÅäÖÃÎļþsetting.xml
<?xml version="1.0" encoding="UTF-8"?>
 
<beans>
    <bean id="me" class="com.zj.ioc.di.imp.Person">
       <property name="name">
           <value>ZJ</value>
       </property>
       <property name="age">
           <value>26</value>
       </property>
       <property name="height">
           <value>1.78</value>
       </property>
    </bean>
    <bean id="you" class="com.z


Ïà¹ØÎĵµ£º

JAVAÖÐÎÄÏÔʾÂÒÂëÎÊÌâ

ÔÚ»ùÓÚJAVAµÄ±à³ÌÖУ¬¾­³£»áÅöµ½ºº×ÖÏÔʾÂÒÂëµÄÎÊÌ⣬¾­Ò»·¬²éѯÏÖ×ܽáÈçÏ¡£
ÔÚJSPÖн¨ÒéÍøÒ³±àÂ뷽ʽÓÃGBK,ÕâÑù»á·½±ãһЩ¡£
Õâ¸öÎÊÌâÊÇÒòΪJAVA±àÂ뷽ʽת»»³öÏÖÁËÎÊÌ⣬JavaÖÐĬÈϵıàÂ뷽ʽÊÇUNICODE£¬¶øÖйúÈËͨ³£Ê¹ÓõÄÎļþºÍDB¶¼ÊÇ»ùÓÚGB2312»òÕßBIG5µÈ±àÂ룬¹Ê»á³öÏÖ´ËÎÊÌâ¡£ÎÒÖªµÀÒ»¶¨ÓкܶàÅóÓÑÒ²»áÅöµ½Õâ¸öÎ ......

Java»ù´¡£ºµÚÊ®°Ë½² StringÓ÷¨£¨ÉÏ£©

StringÊDZȽÏÌØÊâµÄÊý¾ÝÀàÐÍ£¬Ëü²»ÊôÓÚ»ù±¾Êý¾ÝÀàÐÍ£¬µ«ÊÇ¿ÉÒÔºÍʹÓûù±¾Êý¾ÝÀàÐÍÒ»ÑùÖ±½Ó¸³Öµ£¬²»Ê¹ÓÃnew¹Ø¼ü×Ö½øÐÐʵÀý»¯¡£Ò²¿ÉÒÔÏñÆäËûÀàÐÍÒ»ÑùʹÓùؼü×Önew½øÐÐʵÀý»¯¡£ÏÂÃæµÄ´úÂ붼ÊǺϷ¨µÄ£º
   String s1 = "this is a string!";
   String s2 = new String("this is another string!");
Áí ......

Java»ù´¡£ºµÚÊ®¾Å½² StringÓ÷¨£¨Ï£©

±¾´Î½éÉܵÄStringµÄ·½·¨°üÀ¨£º±È½ÏÄÚÈÝ¡¢´óСдת»»¡¢Ç°×ººÍºó׺£¬²¢¸ø³öÁËÒ»¸öÀý×Ó¡£
±È½Ï×Ö·û´®ÄÚÈÝ
Á½ÖÖÐÎʽ¡£ÐÎʽһÈçÏ£º
·½·¨¶¨Ò壺public boolean equals(Object o)
·½·¨ÃèÊö£º±È½ÏÊÇ·ñÓë²ÎÊýÏàͬ£¬Çø·Ö´óСд¡£
ÀýÈ磺
str.equals(“this”)
½á¹û£º
False
ÐÎʽ¶þÈçÏ£º
·½·¨¶¨Ò壺public boole ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ