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

JAVA ÅàѵÌâ¿â Spring

Ò»¡¢Spring»ù´¡ÖªÊ¶¼°IOC_Ñ¡ÔñÌâ
1. ÏÂÃæ¹ØÓÚspringÃèÊö´íÎóµÄÊÇ£º£¨ £©
A  SpringÖ§³Ö¿É²åÈëµÄÊÂÎñ¹ÜÀíÆ÷£¬Ê¹ÊÂÎñ»®·Ö¸üÇáËÉ£¬Í¬Ê±ÎÞÐè´¦Àíµ×²ãµÄÎÊÌâ¡£
B  SpringÊÂÎñ¹ÜÀíµÄͨÓóéÏó²ã»¹°üÀ¨JTA²ßÂÔºÍÒ»¸öJDBC DataSource¡£
C  ÓëJTA»òEJB CMTÒ»Ñù£¬SpringµÄÊÂÎñÖ§³ÖÒÀÀµÓÚJava EE»·¾³¡£
D  SpringÊÂÎñÓïÒåͨ¹ýAOPÓ¦ÓÃÓÚ POJO£¬Í¨¹ýXML»òJava SE 5×¢ÊͽøÐÐÅäÖá£
²Î¿¼´ð°¸£ºC
2. ÏÂÃæÑ¡ÏîÄĸö²»ÊÇSpringÖнӿÚ×¢ÈëµÄ·½Ê½£¿£¨ £©
A  ½Ó¿Ú×¢Èë¡¡¡¡
B  ¹¹Ôì×Ó×¢Èë¡¡¡¡
C  ÉèÖµ×¢Èë¡¡¡¡
D  Ö¸Õë×¢Èë
²Î¿¼´ð°¸£ºD
3. ÏÂÁйØÓÚSpringÌØÐÔÖÐIoCÃèÊö´íÎóµÄÊÇ£º£¨£©
A  IoC¾ÍÊÇÖ¸³ÌÐòÖ®¼äµÄ¹ØϵÓɳÌÐò´úÂëÖ±½Ó²Ù¿Ø¡£
B  Ëùν“¿ØÖÆ·´×ª”,ÊÇÖ¸¿ØÖÆȨÓÉÓ¦ÓôúÂëתµ½ÍⲿÈÝÆ÷£¬¿ØÖÆȨµÄתÒÆ£¬
C  IoC½«¿ØÖÆ´´½¨µÄÖ°Ôð°á½øÁË¿ò¼ÜÖУ»²¢°ÑËü´ÓÓ¦ÓôúÂëÍÑÀ뿪À´
D  µ±Ê¹ÓÃSpringµÄIoCÈÝÆ÷ʱֻÐèÖ¸³ö×é¼þÐèÒªµÄ¶ÔÏó£¬ÔÚÔËÐÐʱSpringµÄIoCÈÝÆ÷»á¸ù¾ÝXMLÅäÖÃÊý¾ÝÌṩ¸øËü¡£
²Î¿¼´ð°¸£ºA
 ¶þ¡¢Spring»ù´¡ÖªÊ¶¼°IOC_¼ò´ðÌâ
1. Çë¼òÊöSpringµÄ¹¤×÷»úÖÆ£¿
²Î¿¼´ð°¸£ºSpringµÄ¹¤×÷»úÖÆ¿É´ÓÒÔϼ¸µãÀ´ÃèÊö£º£¨1£©spring mvcÇëËùÓеÄÇëÇó¶¼Ìá½»¸øDispatcherServlet,Ëü»áίÍÐÓ¦ÓÃϵͳµÄÆäËûÄ£¿é¸ºÔð¸ºÔð¶ÔÇëÇó½øÐÐÕæÕýµÄ´¦Àí¹¤×÷¡£ £¨2£©DispatcherServlet²éѯһ¸ö»ò¶à¸öHandlerMapping,ÕÒµ½´¦ÀíÇëÇóµÄController¡££¨3£©DispatcherServletÇëÇëÇóÌá½»µ½Ä¿±êController £¨4£©Controller½øÐÐÒµÎñÂß¼­´¦Àíºó£¬»á·µ»ØÒ»¸öModelAndView £¨5£©Dispathcher²éѯһ¸ö»ò¶à¸öViewResolverÊÓͼ½âÎöÆ÷,ÕÒµ½ModelAndView¶ÔÏóÖ¸¶¨µÄÊÓͼ¶ÔÏó£¨6£©ÊÓͼ¶ÔÏó¸ºÔðäÖȾ·µ»Ø¸ø¿Í»§¶Ë¡£
2. Çë»Ø´ðÄãΪʲôÓÃSpringµÄ¹¤×÷»úÖÆ£¿
²Î¿¼´ð°¸£ºSpringÄÜÓÐЧµÄ×éÖ¯ÄãµÄÖмä²ã¶ÔÏ󣬲»¹ÜÄãÊÇ·ñÑ¡ÔñʹÓÃÁËEJB¡£Èç¹ûÄã½ö½öʹÓÃÁËstrus»òÆäËûΪj2eeµÄAPIÌØÐÔµÄframework£¬springÖÂÁ¦ÓÚ½â¾öʣϵÄÎÊÌâ¡£SpringÄܹ»Ïû³ýÔÚÐí¶à¹¤³ÌÖг£¼ûµÄ¶ÔsingletonµÄ¹ý¶àµÄʹÓá£Õâ¸öÊÇÒ»¸öºÜ´óµÄÎÊÌ⣬Ëü½µµÍÁËϵͳµÄ¿É²âÊÔÐÔºÍÃæÏò¶ÔÏóµÄ³Ì¶È¡£Í¨¹ý°Ñ¶Ô½Ó¿Ú±à³Ì¶ø²»ÊǶÔÀà±à³ÌµÄ´ú¼Û¼¸ºõ¼õÉÙµ½Ã»ÓУ¬springÄܹ»´Ù½øÁ¼ºÃµÄ±ä³ÉÏ°¹ßµÄÑø³É¡£
3. Çë¼òÊöSpringÊÇʲô£¿
²Î¿¼´ð°¸£ºSpringÊÇÒ»¸öÇáÐ͵ÄÈÝÆ÷£¬ÊÇJ2EE¹æ·¶µÄÇáÁ¿¼¶ÊµÏÖ£¬ÊÇÆóÒµÓ¦Óõēһվʽ”½â¾ö·½°¸¡£ÆäÖеĺËÐľÍÊÇbean¹¤³§£¬ÓÃÒÔ¹¹ÔìÎÒÃÇÐ


Ïà¹ØÎĵµ£º

javaÐòÁл¯

ÐòÁл¯¾ÍÊǰѶÔÏóת»»ÎªÁ÷ÒÔ´æ´¢µ½Îļþ»ò´«Êä¸øÁíÒ»¸ö³ÌÐò£»·´ÐòÁл¯¾ÍÊÇ°ÑÁ÷ת»»Îª¶ÔÏó¡£JAVAµÄÐòÁл¯£¬ÊÇͨ¹ýÊÇjava.io.Serializable½Ó¿ÚÀ´ÊµÏֵġ£¸Ã½Ó¿Ú²»°üº¬Èκη½·¨£¬½ö±ê¼ÇÊÇ·ñ¿É±»ÐòÁл¯¡£¿ÉÐòÁл¯µÄÀ࣬Æä³ÉÔ±Ò²±ØÐëÊÇ¿ÉÐòÁл¯µÄ£¨Èç¹ûÓгÉÔ±²»Äܱ»ÐòÁл¯£¬Ôò±ØÐ뽫¸Ã±äÁ¿±ê¼ÇΪ£ºtransient£¨Ë²Ì¬£©£¬ÐòÁл¯Ê±£¬» ......

javaÈçºÎ»ñµÃ´æ´¢¹ý³ÌµÄ²ÎÊý(Àý×Ó)

javaÈçºÎ»ñµÃ´æ´¢¹ý³ÌµÄ²ÎÊý(Àý×Ó)
        Connection conn = JDBCUtils.getConnection();
        DatabaseMetaData dbmd = conn.getMetaData();       
ResultSet rs = dbmd.getProcedureColumns(null, " ......

JAVA ¿ì½Ý¼ü

¿´ÁËjava˽ÛÓµÄÖм¶ÊÓƵ£¬¸Ð¾õºÜÈ«Ã棬×ܽáÕûÀí³öÁËһЩEclipse¿ì½Ý¼ü£¬Ï£Íû¶ÔÓÐÓõÄÅóÓÑÓÐËù°ïÖú£º
Ctrl+1 ¿ìËÙÐÞ¸´(×î¾­µäµÄ¿ì½Ý¼ü,¾Í²»Óöà˵ÁË)
Ctrl+D: ɾ³ýµ±Ç°ÐÐ
Ctrl+Alt+↓ ¸´ÖƵ±Ç°Ðе½ÏÂÒ»ÐÐ(¸´ÖÆÔö¼Ó)
Ctrl+Alt+↑ ¸´ÖƵ±Ç°Ðе½ÉÏÒ»ÐÐ(¸´ÖÆÔö¼Ó)
Alt+↓ µ±Ç°ÐкÍÏÂÃæÒ»Ðн»»¥Î»ÖÃ(Ìرðʵ ......

100ÐÐJava´úÂë¹¹½¨Ò»¸öÏ̳߳Ø

ÔÚÏÖ´úµÄ²Ù×÷ϵͳÖУ¬ÓÐÒ»¸öºÜÖØÒªµÄ¸ÅÄî¨D¨DỊ̈߳¬¼¸ºõËùÓÐÄ¿Ç°Á÷ÐеIJÙ×÷ϵͳ¶¼Ö§³ÖỊ̈߳¬Ïß³ÌÀ´Ô´ÓÚ²Ù×÷ϵͳÖнø³ÌµÄ¸ÅÄ½ø³ÌÓÐ×Ô¼ºµÄÐéÄâµØÖ·¿Õ¼äÒÔ¼°ÕýÎĶΡ¢Êý¾Ý¶Î¼°¶ÑÕ»£¬¶øÇÒ¸÷×ÔÕ¼Óв»Í¬µÄϵͳ×ÊÔ´£¨ÀýÈçÎļþ¡¢»·¾³±äÁ¿µÈµÈ£©¡£Óë´Ë²»Í¬£¬Ï̲߳»Äܵ¥¶À´æÔÚ£¬ËüÒÀ¸½ÓÚ½ø³Ì£¬Ö»ÄÜÓɽø³ÌÅÉÉú¡£Èç¹ûÒ»¸ö½ø³ÌÅÉÉú³öÁË ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ