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

Spring XMLÅäÖõÄ12¸ö¼¼ÇÉ

SpringÊÇÒ»¸öÇ¿ÓÐÁ¦µÄjava³ÌÐò¿ò¼Ü£¬Æä±»¹ã·ºÓ¦ÓÃÓÚjavaµÄ³ÌÐòÖС£ËüÓÃPOJOÌṩÁËÆóÒµ¼¶·þÎñ¡£SpringÀûÓÃÒÀÀµ×¢Èë¿ÉÒÔ»ñµÃ¼òµ¥¶øÓÐЧµÄ²âÊÔÄÜÁ¦¡£Spring beans£¬ÒÀÀµ¹Øϵ£¬ÒÔ¼°·þÎñËùÐèÒªµÄbean¶¼½«ÔÚÅäÖÃÎļþÖÐÓèÒÔÃèÊö£¬ÅäÖÃÎļþÒ»°ã²ÉÓÃXML¸ñʽ¡£È»¶øXMLÅäÖÃÎļþÈß³¤¶ø²»Ò×ʹÓã¬ÔÚÄã½øÐÐÒ»¸öʹÓÃÁË´óÁ¿beanµÄ´óÏîÄ¿ÖÐËü½«±äµÃÄÑÒÔÔĶÁºÍ¿ØÖÆ¡£
¡¡¡¡ÔÚÕâƪÎÄÕÂÖÐÎÒ½«¸øÄãչʾ12ÖÖµÄÓйØSpring XMLÅäÖÃÎļþµÄ×î¼Ñ¼¼ÇÉ¡£ËüÃÇÖеÄһЩ¾ßÓиü¶àµÄʵ¼ÊÒâÒ壬¶ø²»½öÊÇ×îºÃµÄ¼¼ÇÉ¡£Çë×¢ÒâÁíÍâһЩÒòËØ£¬ÀýÈçÓòÄ£Ð͵ÄÉè¼Æ£¬»áÓ°Ïìµ½XMLÅäÖ㬵«ÊÇÕâƪÎÄÕ¸ü¹Ø×¢ÓÚXMLÅäÖõĿɶÁÐԺͿɲٿØÐÔ¡£
¡¡¡¡1£® ±ÜÃâʹÓÃ×Ô¶¯×°Åä
¡¡¡¡Spring¿ÉÒÔͨ¹ýbeanÀàµÄ×ÔÊ¡À´ÊµÏÖ×Ô¶¯×°ÅäÒÀÀµ£¬ÕâÑùµÄ»°Äã¾Í²»±ØÃ÷È·µØÃèÊöbeanµÄÊôÐÔ»òÕß¹¹Ô캯ÊýµÄ²ÎÊý¡£¸ù¾ÝÊôÐÔÃû³Æ»îÆ¥ÅäÀàÐÍ£¬beanÊôÐÔ¿ÉÒÔ×Ô¶¯½øÐÐ×°Åä¡£¶ø¹¹Ô캯Êý¿ÉÒÔ¸ù¾ÝÆ¥ÅäÀàÐÍ×Ô¶¯×°Åä¡£ÄãÉõÖÁ¿ÉÒÔÉèÖÃ×Ô¶¯×°Åä½øÐÐ×Ô¶¯Õì²â£¬ÕâÑùSpringÌæÄã¾Í»áÑ¡ÔñÒ»¸öºÏÊʵĻúÖÆ¡£Çë¿´ÏÂÃæµÄÀý×Ó£º
¡¡¡¡
¡¡¡¡Spring¿ÉÒÔͨ¹ýbeanÀàµÄ×ÔÊ¡À´ÊµÏÖ×Ô¶¯×°ÅäÒÀÀµ£¬ÕâÑùµÄ»°Äã¾Í²»±ØÃ÷È·µØÃèÊöbeanµÄÊôÐÔ»òÕß¹¹Ô캯ÊýµÄ²ÎÊý¡£¸ù¾ÝÊôÐÔÃû³Æ»îÆ¥ÅäÀàÐÍ£¬beanÊôÐÔ¿ÉÒÔ×Ô¶¯½øÐÐ×°Åä¡£¶ø¹¹Ô캯Êý¿ÉÒÔ¸ù¾ÝÆ¥ÅäÀàÐÍ×Ô¶¯×°Åä¡£ÄãÉõÖÁ¿ÉÒÔÉèÖÃ×Ô¶¯×°Åä½øÐÐ×Ô¶¯Õì²â£¬ÕâÑùSpringÌæÄã¾Í»áÑ¡ÔñÒ»¸öºÏÊʵĻúÖÆ¡£Çë¿´ÏÂÃæµÄÀý×Ó£º
¡¡¡¡ <bean id="orderService"
¡¡¡¡ class="com.lizjason.spring.OrderService"
¡¡¡¡ autowire="byName"/>
¡¡¡¡OrderServiceÀàµÄÊôÐÔÃû±»ÓÃÀ´ºÍÈÝÆ÷ÖеÄÒ»¸öbeanʵÀý½øÐÐÆ¥Åä¡£×Ô¶¯×°Åä»áĬĬµÄ±£´æһЩÀàÐÍÐÅÏ¢²¢½µµÍ»ìÂÒ¡£È»¶ø£¬ÓÉÓÚËü»áÎþÉüµôÕâÖÖÅäÖõÄÖ±¹ÛÐԺͿÉά»¤ÐÔ£¬ÄãÔÚʵ¼ÊµÄÏîÄ¿Öн«²»»áÓõ½Ëü¡£Ðí¶àÖ¸ÄϺͳÂÊö²ÄÁ϶¼°ÑËü´µÅõΪSpringµÄÒ»¸ö·Ç³£coolµÄÌØÐÔ£¬¶øûÓÐÌáµ½ËüµÄÕâ¸öȱµã¡£ÒÀÎÒÖ®¼û£¬¾ÍÏñSpringµÄ¶ÔÏó³ØÒ»Ñù£¬Ëü¸ü¶àÁËһЩÉÌҵζµÀ¡£Ëü¿´ÆðÀ´ºÃÏñ¿ÉÒÔʹXMLÅäÖÃÎļþ¸ü¾«¼òһЩ£¬µ«Êµ¼ÊÉÏÈ´Ôö¼ÓÆ临ÔÓÐÔ£¬ÓÈÆäÊÇÔÚÄãµÄ½Ï´ó¹æÄ£µÄ¹¤³ÌÖÐÒѾ­¶¨ÒåÁ˺ܶàbeanµÄʱºò¸üÊÇÈç´Ë¡£SpringÔÊÐíÄã»ìºÏʹÓÃ×Ô¶¯ºÍÊÖ¶¯×°Å䣬µ«ÊÇÕâÖÖì¶Ü»áʹXMLÅäÖøü¼ÓµÄÁîÈ˷ѽ⡣
¡¡¡¡2£® ʹÓÃÃüÃû¹æ·¶
¡¡¡¡ºÍJava±àÂëµÄÀíÄîÒ»Ñù£¬ÔÚÏîÄ¿ÖÐʼÖÕÓÃÇåÎúµÄ£¬ÃèÊöÐԵģ¬Ò»ÖµÄÃüÃû¹æ·¶¶Ô¿ª·¢ÈËÔ±Àí½âXMLÅäÖ÷dz£ÓÐÓá£ÄÃbean ID¾ÙÀýÀ´Ëµ£¬Äã¿ÉÒÔ×ñÑ­JavaÀàÖÐÊôÐÔµÄÃüÃû¹æ·¶¡£±ÈÈç˵£¬OrderServiceDAOµÄbean IDÓ¦¸ÃÊ


Ïà¹ØÎĵµ£º

JavaScriptÈëÃÅÓëÆä¿ò¼ÜJQuery£¬JSONºÍXMLµÄ±È½Ï

µ±Ò³ÃæÔØÈëʱ£¬»áÖ´ÐÐλÓÚ body ²¿·ÖµÄ JavaScript¡£
µ±±»µ÷ÓÃʱ£¬Î»ÓÚ head ²¿·ÖµÄ JavaScript ²Å»á±»Ö´ÐС£
2006Äê1ÔÂ14ÈÕ£¬John Resig ÔÚBarCampNYCÉϵÚÒ»´Î·¢²¼ÁËjQuery¡£
 
JSON(JavaScript Object Notation) ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ¡£Ò×ÓÚÈËÔĶÁºÍ±àд¡£Í¬Ê±Ò²Ò×ÓÚ»úÆ÷½âÎöºÍÉú³É¡£Ëü»ùÓÚJavaScript£¨St ......

SQL Server¸ù¾Ý²éѯ½á¹û,Éú³ÉXMLÎļþ

SQL Server¸ù¾Ý²éѯ½á¹û,Éú³ÉXMLÎļþ
À´Ô´£º²»Ïê  ×÷ÕߣºØýÃû  Ê±¼ä£º2009-3-6 22:15:58 ·¢²¼£ººÚ¿ÍÈí¼þÔ°
/*
'bcp' ²»ÊÇÄÚ²¿»òÍⲿÃüÁҲ²»ÊÇ¿ÉÔËÐеijÌÐò£¿
¿´¿´ÔÚC:\Program Files\Microsoft SQL Server\80\Tools\BinnÀïÃæÓÐûÓÐbcp.exeÕâ¸öÎļþ
È»ºó¿´¿´pathÀïÃæ¼ÓC:\Program Files\Microso ......

Javaͨ¹ýXML SchemaУÑéXML

Javaͨ¹ýXML SchemaУÑéXML
 
XMLµÄУÑéÔÚXML´¦ÀíÖзdz£³£¼û£¬Èç¹ûûÓÐÓÐЧµÄ°ì·¨À´Ð£ÑéXMLµÄºÏ·¨ÐÔ£¬ÍùÍù»áµ¼ÖºܶàÎÊÌâ¡£
 
XMLµÄУÑéÊÇͨ¹ýXML Schema£¨XSD£© »òDTDÎļþµÄÓï·¨¹æ·¶À´Ð£ÑéµÄ¡£DTDÏÖÔÚÔ½À´Ô½²»ÊÜ»¶Ó­ÁË£¬ÔÚ´ËÑ¡ÓÃXSDÀ´Ð£Ñé¡£
 
JavaУÑéXMLÊǼþºÍ³¶µ­µÄÊÂÇ飬ÒòΪSunµÄXMLÏà¹ØÈí¼þ°ü» ......

¹ýÂËxmlÊý¾Ý

ÎÒÏë·ÃÎÊxmlµ±ÖÐijЩÊý¾Ý£¬»òÕßÊÇÏ£ÍûÓиö°´Å¥ÓиöÊäÈëÎı¾µã»÷°´Å¥ºó¹ýÂ˵ôÊäÈëÎı¾µÄÄÚÈÝ£¬¸ÃÈçºÎ×ö£¿
XMLListCollectionÖеĹýÂ˺¯Êý¿ÉÒÔ°ïÎÒÃÇ×öµ½Õâµã£¡Ê¾ÀýµÄ¹Ø¼üº¯ÊýÈçÏ£¬ÖÁÓÚxmlÓÐÐËȤµÄÅóÓÑ×Ô¸öд
import mx.collections.XMLListCollection;
protected var col:XMLListCollection;
protected var menuI ......

Struts2.0»ùÓÚxmlÅäÖÃÎļþ¶ÔActionµÄÊôÐÔ½øÐÐУÑé

java´úÂë
package com.xml.action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class XMLAction extends ActionSupport{

private static final long serialVersionUID = 1L;
private String username;
private String mobile;
public void setUs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ