JAVA WEB
Java EE ¸ÅÊö
Javaa EE:·Ö²¼Ê½ ÆóÒµ¼¶Ó¦Óù淶ºÍ±ê×¼
ÍÆģʽ£º²»ÓÃÇëÇó£¬Ç¿ÖÆÈÿͻ§½ÓÊÜ
Àģʽ£ºÈÿͻ§ÇëÇóºÍÏìÓ¦¡£
¼Ü¹¹£º
ÇáÁ¿¼¶£ºstruct2 /spring /hibernate
Modle1:jsp+JavaBean+DB
Model2(MVC):jsp+servlet+JavaBean+DB
ÖØÁ¿¼¶£ºJsp+servlet+EJB+DB
±íʾ²ã£ºÒµÎñ²ã£º³Ö¾Ã²ã£ºÊý¾Ý¿â£º
JNDI£º²éÕÒ·Ö²¼¶ÔÏóµÄ»úÖÆ£¬Ã÷ÃüĿ¼·þÎñ¡£
DataSouce£ºEJB£ºJMS¶ÓÁС£
Session£ºÓÃÓÚÅжϻòÇø·ÖÊÇ·ñÊÇͬһ¸öÓû§µÄÇëÇó
Web Service£º½«×ÔÎÒ·ÖÐÒé½»¸øÍⲿµ÷Óá£
B/S:Óŵ㣺ά»¤ÐԸߣ¬ÔËÐÐЧÂʲ»¸ß£¬Ò³Ãæ²»ÃÀ¹Û¡£
½ÓÊÜ¿Í»§¶ÎÇëÇóµÄÊý¾Ý£ºrequest.getprameter();
Request.getprameterValues();
Request.Head();
Request.cooket();
¼ÆËã»ú¼äµÄÊý¾Ý´«Ê䷽ʽ£¨ÐÒ飩£ºhttp£¬Ftp£¬Udp¡£
Servlet»ù´¡
ÈÝÆ÷
ÓÃÀ´ÈÝÄÉ×é¼þ£¬¹ÜÀí¶ÔÏóµÄÉúÃüÖÜÆÚ
ServletµÄÉúÃüÖÜÆÚ
¼ÓÔغÍʵÀý»¯
Óû§ÇëÇóʱservletÈÝÆ÷¸ºÔð¼ÓÔغÍʵÀý»¯servlet£¬Ê×ÏÈÔÚÈÝÆ÷ÖвéÕÒ£¬Èç¹û´æÔÚÔòÈ¡³ö£¬
²»´æÔÚÔò´´½¨servletʵÀý¡£
³õʼ»¯init£¨£©
µ±ÈÝÆ÷¼ÓÔغÃservletʵÀýºó£¬³õʼ»¯servletʱ£¬¿ÉÉèÖÃÁ¬½Ó²ÎÊý£¬»ò¶ÔÆäËû×ÊÔ´µÄÒýÓá£
·þÎñservice£¨£©
Servlet³õʼ»¯ºó£¬¾Í´¦ÓÚÏàÓ¦ÇëÇóµÄ¾ÍÐ÷״̬¡£ÇëÇó¶ÔÏóÒÔ²ÎÊýµÄÐÎʽ´«¸øservice£¨£©·½·¨,ÓÉËüÀ´Åжϴ¦ÀíÇëÇóµÄ·½Ê½¡£0
Ïú»Ùdestroy£¨£©
ServletµÄʵÀýÊÇÓÉservletÈÝÆ÷´´½¨µÄ£¬ÓÉÈÝÆ÷À´ÅжÏÒ»¸öservlet±»ÊÍ·Åʱ£¬Destory£¨£©·½·¨À´Ö¸Ã÷ÄÇЩ·½·¨¿ÉÒÔ±»ÏµÍ³
»ØÊÕ
ʵÀý±äÁ¿ÔÚservice£¨£©·½·¨ÖÐÉùÃ÷¡£
±¾µØ±äÁ¿ÔÚ´¦Àí·½·¨ÖÐÉùÃ÷£»
ServletÔÚ·þÎñÆ÷ÔËÐÐ֮ǰÆôÓÃ
<load-on-startup>1</load-on-startup>
ServletÈÝÆ÷ ºÎʱװÔØServlet
1£® Åжϲ¿ÊðÃèÊö·ûÖÐÓÐûÓÐ<load-on-startup>
2£® µ±Óû§ÇëÇóʱservlet²Å×°ÔØ£»
ͨ¹ýjspÎļþÀ´³äµ±servlet
<servlet-name>loginjsp</servlet-name>
<jsp-file>login.jsp</jsp-file>
<servlet-name>loginjsp</servlet-name>
<url-pattern>jspÎļþµÄ¾ø¶Ô·¾¶</url-pattern>
Ìí¼Ó
Http£ºÊÇÓ¦ÓòãÐÒ飬ʹÓÃϲãµÄtcp/ipת»»²ãÀ´Íê³É
Url£ºÍ³Ò»×ÊÔ´±êʶ·û£¬ÓµÓÚÖ¸¶¨ºÍ¹¹³Éweb×ÊÔ´µÄ×Ö·û´ÜµÄ¸÷¸ö²»Í¬µÄ²¿·Ö¡£
ServletContext¶ÔÏóÊǸöweb·þÎñÆ÷ÖеÄÒ»¸öÒÑ֪·¾¶µÄ¸ù¡£
ServletÉÏÏÂÎı»¶©Î»Îªhttp://loclhost:8080//project
ProjectÇëÇ󷾶£¨³ÉΪÉÏÏÂÎĵ
Ïà¹ØÎĵµ£º
java¼¯ºÏ¿ò¼Üͼ¼°½éÉÜ
¼ò»¯Í¼£º
Javaƽ̨ÌṩÁËÒ»¸öȫеļ¯ºÏ¿ò¼Ü¡£“¼¯ºÏ¿ò¼Ü”Ö÷ÒªÓÉÒ»×éÓÃÀ´²Ù×÷¶ÔÏóµÄ½Ó¿Ú×é³É¡£²»Í¬½Ó¿ÚÃèÊöÒ»×鲻ͬÊý¾ÝÀàÐÍ¡£
Java 2¼¯ºÏ¿ò¼Üͼ
¼¯ºÏ½Ó¿Ú£º6¸ö½Ó¿Ú£¨¶ÌÐéÏß±íʾ£©£¬±íʾ²»Í¬¼¯ºÏÀàÐÍ£¬ÊǼ¯ºÏ¿ò¼ÜµÄ»ù´¡¡£
³éÏóÀࣺ5¸ö³éÏóÀࣨ³¤ÐéÏß±íʾ£©£¬¶Ô¼¯ºÏ½Ó¿ÚµÄ²¿·ÖʵÏÖ¡£ ......
JavaʼþÄ£ÐÍÓëAndroidʼþÄ£Ð͵ıȽÏ
±È½Ï½á¹û£ºAndroid½è¼øÁËJava2ÖеÄUIʼþ´¦Àí»úÖÆ£¬µ«ÊÇ£¬AndroidÓÖÌṩÁËÁíÒ»ÖÖʼþ處ÀíÆ÷£¨event handler£©£¬¶øÕâ¸ö·½Ê½ÊÇ·ñÓëjava1.0ʼþÄ£ÐÍÒ»ÑùÄØ£¬ÓдýÇóÖ¤¡£
JavaʼþÄ£ÐÍ£º
ÎÒÃÇ°ÑJDK1.0ʼþ´¦ÀíÄ£ÐͳÉΪJava1.0ʼþÄ£ÐÍ£¬¶ø´Ójdk1.1ºóµÄ°æ±¾Ê¼þ´¦ÀíÄ£ÐͳÆΪJava 2Ê ......
Ò»¡¢ÓÐÁ½µãÐèҪעÒ⣺
1¡¢Object ¶ÔÏó±ØÐëÊÇ¿ÉÐòÁл¯¶ÔÏó ¡£
2¡¢¿ÉÐòÁл¯µÄ Object
¶ÔÏ󶼿ÉÒÔת»»ÎªÒ»¸ö´ÅÅÌÎļþ£»·´¹ýÀ´Ôò²»Ò»¶¨³ÉÁ¢£¬Ö»ÓÐÐòÁÐ
»¯Îļþ²Å¿ÉÒÔת»»Îª Object ¶ÔÏó¡£
¶þ¡¢Ïà¹ØµÄת»»·½·¨£º
&nbs ......
JavaÃæÊÔÌâ¼°´ð°¸£¨»ù´¡Ìâ122µÀ£©
JAVAÏà¹Ø»ù´¡ÖªÊ¶
1¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ
1.³éÏó£º
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇЩ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»ÊÇÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ÔÝʱ²»Óò¿·Öϸ½Ú¡£³éÏó°üÀ¨Á½¸ö·½Ã棬һÊǹý³Ì³éÏ󣬶þÊÇÊý¾Ý³éÏó¡£ ......
¸ÕѧGIS£¬×ö¸öÉèÖõØͼÖеã¾Í³öÁËÂé·³ £¡µ«ÊÇÒ»Ö±¾ÍÊÇÉèÖò»ÕýÈ·£¬¸ãÁËN¾Ã£»ºóÀ´·¢ÏÖÎÊÌâÔÚÓÚÉèÖõĵØͼ±ß½ç¸ß¶È¼°¿í¶ÈÒªÓëÒ³Ãæ¶ÔÓ¦µÄÊä³ö´¦µÄ¸ß¶È¼°¿í¶ÈÒªÒ»Ö¡£
Ò²¾ÍÊÇ£º
myMap.setDeviceBounds(new DoubleRect(0, 0, m_mapWidth, m_mapHeight));
m_mapWidth, m_mapHeight µÄÖµÒªÓëÏÂà ......