Java¿ªÔ´ J2EE¿ò¼Ü
Spring Framework ¡¾Java¿ªÔ´ J2EE¿ò¼Ü¡¿
SpringÊÇÒ»¸ö½â¾öÁËÐí¶àÔÚJ2EE¿ª·¢Öг£¼ûµÄÎÊÌâµÄÇ¿´ó¿ò¼Ü¡£ SpringÌṩÁ˹ÜÀíÒµÎñ¶ÔÏóµÄÒ»Ö·½·¨²¢ÇÒ¹ÄÀøÁË×¢Èë¶Ô½Ó¿Ú±à³Ì¶ø²»ÊǶÔÀà±à³ÌµÄÁ¼ºÃÏ°¹ß¡£SpringµÄ¼Ü¹¹»ù´¡ÊÇ»ùÓÚʹÓÃJavaBeanÊôÐ﵀ Inversion of ControlÈÝÆ÷¡£È»¶ø£¬Õâ½ö½öÊÇÍêÕûͼ¾°ÖеÄÒ»²¿·Ö£ºSpringÔÚʹÓÃIoCÈÝÆ÷×÷Ϊ¹¹½¨Íê¹Ø×¢ËùÓмܹ¹²ãµÄÍêÕû½â¾ö·½°¸·½ÃæÊǶÀÒ»ÎÞ¶þµÄ¡£ SpringÌṩÁËΨһµÄÊý¾Ý·ÃÎʳéÏ󣬰üÀ¨¼òµ¥ºÍÓÐЧÂʵÄJDBC¿ò¼Ü£¬¼«´óµÄ¸Ä½øÁËЧÂʲ¢ÇÒ¼õÉÙÁË¿ÉÄܵĴíÎó¡£SpringµÄÊý¾Ý·ÃÎʼܹ¹»¹¼¯³ÉÁË HibernateºÍÆäËûO/R mapping½â¾ö·½°¸¡£Spring»¹ÌṩÁËΨһµÄÊÂÎñ¹ÜÀí³éÏó£¬ËüÄܹ»ÔÚ¸÷ÖֵײãÊÂÎñ¹ÜÀí¼¼Êõ£¬ÀýÈçJTA»òÕßJDBCÊÂÎñÌṩһ¸öÒ»Öµıà³ÌÄ£ÐÍ¡£ SpringÌṩÁËÒ»¸öÓñê×¼JavaÓïÑÔ±àдµÄAOP¿ò¼Ü£¬Ëü¸øPOJOsÌṩÁËÉùÃ÷ʽµÄÊÂÎñ¹ÜÀíºÍÆäËûÆóÒµÊÂÎñ--Èç¹ûÄãÐèÒª--»¹ÄÜʵÏÖÄã×Ô¼ºµÄ aspects¡£Õâ¸ö¿ò¼Ü×㹻ǿ´ó£¬Ê¹µÃÓ¦ÓóÌÐòÄܹ»Å׿ªEJBµÄ¸´ÔÓÐÔ£¬Í¬Ê±ÏíÊÜןʹ«Í³EJBÏà¹ØµÄ¹Ø¼ü·þÎñ¡£Spring»¹ÌṩÁË¿ÉÒÔºÍIoCÈÝÆ÷ ¼¯³ÉµÄÇ¿´ó¶øÁé»îµÄMVC Web¿ò¼Ü¡£¡¾SpringIDE£ºEclipseƽ̨ÏÂÒ»¸ö¸¨Öú¿ª·¢²å¼þ¡¿.
WebWork ¡¾Java¿ªÔ´ Web¿ò¼Ü¡¿
WebWorkÊÇÓÉOpenSymphony×éÖ¯¿ª·¢µÄ£¬ÖÂÁ¦ÓÚ×é¼þ»¯ºÍ´úÂëÖØÓõÄÀ³öʽMVCģʽJ2EE Web¿ò¼Ü¡£WebWorkÄ¿Ç°×îа汾ÊÇ2.1£¬ÏÖÔÚµÄWebWork2.xÇ°ÉíÊÇRickard Oberg¿ª·¢µÄWebWork£¬µ«ÏÖÔÚWebWorkÒѾ±»²ð·Ö³ÉÁËXwork1ºÍWebWork2Á½¸öÏîÄ¿¡£ Xwork¼ò½à¡¢Áé»î¹¦ÄÜÇ¿´ó£¬ËüÊÇÒ»¸ö±ê×¼µÄCommandģʽʵÏÖ£¬²¢ÇÒÍêÈ«´Óweb²ãÍÑÀë³öÀ´¡£ XworkÌṩÁ˺ܶàºËÐŦÄÜ£ºÇ°¶ËÀ¹½Ø»ú£¨interceptor£©£¬ÔËÐÐʱ±íµ¥ÊôÐÔÑéÖ¤£¬ÀàÐÍת»»£¬Ç¿´óµÄ±í´ïʽÓïÑÔ£¨OGNL – the Object Graph Notation Language£©£¬IoC£¨Inversion of Controlµ¹ÖÿØÖÆ£©ÈÝÆ÷µÈ¡£ WebWork2½¨Á¢ÔÚXworkÖ®ÉÏ£¬´¦ÀíHTTPµÄÏìÓ¦ºÍÇëÇó¡£WebWork2ʹÓÃServletDispatcher½«HTTPÇëÇóµÄ±ä³É Action(ÒµÎñ²ãActionÀà), session£¨»á»°£©application£¨Ó¦ÓóÌÐò£©·¶Î§µÄÓ³É䣬requestÇëÇó²ÎÊýÓ³Éä¡£WebWork2Ö§³Ö¶àÊÓͼ±íʾ£¬ÊÓͼ²¿·Ö¿ÉÒÔʹÓà JSP, Velocity, FreeMarker, JasperReports£¬XMLµÈ¡£ÔÚWebWork2.2ÖÐÌí¼ÓÁ˶ÔAJAXµÄÖ§³Ö£¬ÕâÖ§³ÖÊǹ¹½¨ÔÚDWRÓëDojoÕâÁ½¸ö¿ò¼ÜµÄ»ù´¡Ö®ÉÏ. ¡¾EclipseWork£ºÓÃÓÚWebWork¸¨Öú¿ª·¢µÄÒ»¸öEclipse²å¼þ¡¿
Struts ¡¾Java¿ªÔ´ Web¿ò¼Ü¡¿
StrutsÊÇÒ»¸ö»ùÓÚSun J2EEƽ̨µÄMVC¿ò¼Ü£¬Ö÷ÒªÊDzÉÓÃServ
Ïà¹ØÎĵµ£º
JavaÖеÄtransient£¬volatileºÍstrictfp¹Ø¼ü×Ö
Èç¹ûÓÃtransientÉùÃ÷Ò»¸öʵÀý±äÁ¿£¬µ±¶ÔÏó´æ´¢Ê±£¬ËüµÄÖµ²»ÐèҪά³Ö¡£ÀýÈ磺
Java´úÂë
class T {
transient int a; //²»ÐèҪά³Ö
int b;  ......
ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
<name>¹þÀï²¨Ì ......
Ò»¡¢Ö÷Òª¹¦ÄÜ£º
1¡¢Ö§³Ö´¿Êý×Ö¡¢´óд×Öĸ¡¢Ð¡Ð´×Öĸ£¬¼°Á½Á½»ìºÏ»òÈýÕß»ìºÏÀàÐÍÑéÖ¤Â룻
2¡¢Ö§³Ö×Ô¶¨ÒåÌØÊâ×Ö·ûÅųý£¨Èç0oOi1jI£©£»
3¡¢Ö§³ÖͼƬ¼°ÎÄ×ÖÁ½ÖÖÀàÐÍÑéÖ¤Â룻
4¡¢Ö§³Ö×Ô¶¨ÒåÑéÖ¤ÂëͼƬ´óС£»
5¡¢Ö§³Ö×Ô¶¨Òå¸ÉÈÅÏßÌõÊý£»
6¡¢Ö§³Ö×Ô¶¨Òå¼°Ëæ»ú¶¨ÒåͼƬ¡¢ÎÄ×Ö¡¢¸ÉÈÅÏßÑÕÉ«£»
......
Ç뿼ÂÇÏÂÃæÕâ¶Î»°ËùÃèÊöµÄÎÊÌ⣺
TomÔÚÒ»¼ÒÆû³µÅä¼þÉ̵깺ÂòÁËÒ»¸ö¼ÛÖµ$1.10µÄ»ð»¨Èû£¬µ«ÊÇËûÇ®°üÖж¼ÊÇÁ½ÃÀÔªÒ»Õŵij®Æ±¡£Èç¹ûËûÓÃÒ»ÕÅÁ½ÃÀÔªµÄ³®Æ±Ö§¸¶Õâ¸ö»ð»¨Èû£¬ÄÇôӦ¸ÃÕÒ¸øËû¶àÉÙÁãÇ®ÄØ£¿
ÏÂÃæÊÇÒ»¸öÊÔͼ½â¾öÉÏÊöÎÊÌâµÄ³ÌÐò£¬Ëü»á´òÓ¡³öʲôÄØ£¿
public class Change{
public static void main(String args[ ......
ÏÂÃæÊÇ°²×°ºÍÅäÖò½Öè
°²×°open-jdk-6£¬sudo apt-get install open-jdk-6£¨²»Öªµ½ÎªÊ²Ã´²»°²×°Õâ¸öÔËÐв»ÁËjavaºÍjavacÃüÁ£¡£¡£©
µ½oracle¹ÙÍøÏÂÔØjdk-6u20-linux-i586.binÎļþ
½«jdk-6u20-linux-i586.bin¸´ÖƵ½/usr/lib/jvm/javaÎļþ¼ÐÏÂ
ÔËÐÐsudo chmod a+x jdk-6u20-linux-i586.bin
ÔËÐÐsudo ./jdk-6u20-li ......