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

diyÃæÏòÇëÇóµÄjava¿ò¼Ü

Õâ¸ö¿ò¼ÜÒ²ÊÇΪgoogle app engine×¼±¸µÄ¡£µ±Ê±¸Ð¾õÖ±½ÓÔÚgaeÉÏsevletÌ«·³ÈËÁË£¬¾Í·â×°¸ö¼òÒ׵Ŀò¼Ü¡£Ê¹ÓõÄʱºòÖ»ÐèÒªÅäÖÃweb.xmlÖÐDispacherSevletºÍpackage.propertiesÖеÄpackage.path£¨Ä¬ÈÏɨÃèµÄ°ü£©¼´¿É
gaeÀý×Ó£ºhttp://orzblogs.appspot.com/Home.htm
´óѧµÄʱºòºÜBS java£¬Ñ§ÁËÖ®ºó¾ÍÈÓµôÁË£¬ÏÖÔÚ¹¤×÷Á˲ſªÊ¼½Ó´¥java¡£
javaÔÚweb·½ÃæÈç¹û²»ÊÇ¿ªÔ´£¬²»ÊÇÖÚ¶àµÄjava¿ò¼ÜÖ§³Ö£¬ÄÇôËüȷʵûʲôֵµÃ³ÆµÀµÄ¡£
µ¹ÊÇjvm±»ÓÅ»¯µÄ²»´í¡£
java web¿ò¼Ü±¾ÖÊÉ϶¼ÊÇsevlet£¬ËùÓеÄÄÇôweb¿ò¼Ü¶¼ÊǶÔsevlet½øÐÐÁË·â×°£¬È»ºó¶ÔwebÏà¹ØµÄ½øÐаü×°¡£ÄÇôÎÒÃÇÒ²¿ÉÒÔÀ´diy¸ö¼òÒ×µÄweb¿ò¼Ü£¬ÎªµÄÊÇÌåÑéÕâ¸öÖмäµÄ¹ý³Ì£¬¿ÉÄÜ¿ò¼Ü²»ÊµÓã¬ÉõÖÁ²»ÄܳÆ×÷¿ò¼Ü£¬ÆäʵΪµÄ¾ÍÊǼõÉÙÒ»µãÅäÖã¬ËäÈ»ÏÖÔÚspringMVCͨ¹ý×¢½â¾Í¿ÉÒÔ¼õÉÙweb²ãµÄÅäÖã¬ÕâÀïËù×öµÄÒ²ÊÇͬÑùµÄÊ£¬ÐÔÄܿ϶¨ºÜ²î£¬µ«ÊÇÒ²ÊÇÒ»ÖÖ·½·¨£¬Ôö¼ÓÀí½â¶øÒÑ¡£
Ê×ÏÈÈκÎweb¿ò¼ÜµÄÈë¿Ú»ù±¾É϶¼ÊÇÒ»¸öXXdispatcher¡£ÓÃÀ´½øÐÐÇëÇóurlµÄת·¢¡£
OK£¬ÄÇôÎÒÃǾÍÀ´×öÒ»¸öÃæÏòwebÇëÇóµÄ¼òÒ׵IJ»ÄܳÆΪ¿ò¼ÜµÄ¿ò¼Ü¡£Ç°¶ËʹÓÃvelicity½øÐÐäÖȾ¡£
µ±È»Ò»¶¨Òª°Ñspring¸ø¼¯³É½øÀ´£¬Òª²»Ë­¸øÎÒÃdz־û¯beanÄØ¡£
Ê×ÏÈͨ¹ýDispacherSevletÀ´½øÐÐÇëÇóµÄת·¢¡£È»ºó¸ù¾ÝÇëÇóµÄÃû³Æ¼ÓÔØbean¡£È»ºóͨ¹ý·´É佫beanµÄÏà¹ØÊôÐÔ×¢È롣ȻºóÖ´ÐÐbean¡£È»ºó»ñÈ¡ÐèÒªäÖȾµÄÄ£°å¡£äÖȾ¡£·µ»Ø½á¹û¸øÓû§¡£
Java´úÂë
public String doGet(HttpRequest request, HttpResponse response, Map<String, Object> context)   
public String doPost(HttpRequest request, HttpResponse response, Map<String, Object> context)  
public String doGet(HttpRequest request, HttpResponse response, Map<String, Object> context)
public String doPost(HttpRequest request, HttpResponse response, Map<String, Object> context)
Óû§ÇëÇó/Home.htmÈ»ºó»ñÈ¡µ½¶ÔÓ¦µÄcontrollerΪHome¡£È»ºó´Ó¿ò¼ÜIOCÖлñÈ¡Home¡£Èç¹û»ñÈ¡²»µ½¾Íͨ¹ýbean¼ÓÔØÆ÷À´¼ÓÔØHome£¬È»ºóͨ¹ýHomeµÄdopost»òÕßdoget·½·¨À´´¦ÀíÓ¦Óá£dopostºÍdogetÖлá·ÅÈëÓ³Éä½øÈ¥Ò»¸ömap<string,object>À´´æÒ³ÃæµÄÉÏÏÂÎÄ¡£µ±´¦ÀíÍê±Ïºó¸ù¾ÝHome·µ»ØµÄÒ³Ãæ·¾¶À´½øÐÐÒ³ÃæäÖȾ£¬²¢½«½á¹û·µ»Ø¸øÓû§¡£
ϸ½Ú£º
1.ά»¤Ò»¸ö×Ô¼ºµÄ


Ïà¹ØÎĵµ£º

JavaÒì³£´¦Àí

ÁùÖÖÒì³£´¦ÀíµÄªϰ
    Äã¾õµÃ×Ô¼ºÊÇÒ»¸öJavaר¼ÒÂð£¿ÊÇ·ñ¿Ï¶¨×Ô¼ºÒѾ­È«ÃæÕÆÎÕÁËJavaµÄÒì³£´¦Àí»úÖÆ£¿ÔÚÏÂÃæÕâ¶Î´úÂëÖУ¬ÄãÄܹ»Ñ¸ËÙÕÒ³öÒì³£´¦ÀíµÄÁù¸öÎÊÌâÂð£¿
Java´úÂë
OutputStreamWriter out = ...       
java.sql.Connection conn =& ......

javaÊý¾Ý½á¹¹Ö®¶ÑÕ»

½¨Á¢½ÚµãÀà(Node.java)
package com.yz.mystack;
public class Node {
Object data;
Node next;
public Node(Object data){
this.data=data;
next=null;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
public Node getNext() {
......

HSQLDB ¡¾Java¿ªÔ´ DBMSÊý¾Ý¿â¡¿

  HSQLDB(Hypersonic SQL)ÊÇ´¿Java¿ª·¢µÄ¹ØϵÐÍÊý¾Ý¿â,²¢ÌṩJDBCÇý¶¯´æÈ¡Êý¾Ý¡£Ö§³ÖANSI-92 ±ê×¼ SQLÓï·¨¡£¶øÇÒËûÕ¼µÄ¿Õ¼äºÜС¡£´óÔ¼Ö»ÓÐ160K,ÓµÓпìËÙµÄÊý¾Ý¿âÒýÇæ¡£
תÌûʱÇë×¢Ã÷´ËÎÄÀ´×Ô¼¼ÊõÊÀ½ç:http://www.js4j.com ......

ÓÃRobotдJava´úÀí

ÓÃRobotдJava´úÀí
Rational RobotÊÇͨ¹ý¼ÖÆÓû§²Ù×÷½øÐй¦ÄÜ£¬ÐÔÄܺͼæÈÝÐÔ²âÊÔµÄ×Ô¶¯»¯²âÊÔ¹¤¾ß¡£Í¨¹ý»Ø·Å¼Öƽű¾½øÐй¦ÄܺͿɿ¿ÐÔ²âÊÔ¡£±¾ÎÄÖ÷Òª½éÉÜRational RobotÕë¶Ôjava³ÌÐòºÍappletsÈçºÎ½øÐй¦ÄܲâÊÔ¡£
Rational Robotµ±Ç°°æ±¾Ö§³ÖÓÃÒÔÏÂÀà¿â¿ª·¢µÄJava³ÌÐòºÍapplet³ÌÐò£º
lJava Foundation Classes(JFCs)
l ......

javaµ÷ÓÃhttpsµÄwebservice£¬httpsµÄwsdl

javaµ÷webServiceÌ«Õý³£ÁË¡£¡£¡£
ÔÚµ÷ÓÃhttpsµÄwebServiceµÄʱºò¼¸ÖÖ³£Óõķ½·¨»á³öÏÖ°²È«´íÎ󣬺ܶàÈË˵µÄÊÇÔÚjreÀïÃæ×°Ö¤Êé¡£¡£¡£ÄÇҲ̫ÓôÃÆÁË°É
ÕâÀïÌṩһÖÖ²»ÓÃÖ¤ÊéµÄ·½Ê½
¶Ô·½webServiceÌṩµÄ½Ó¿Ú£¬Õâ¸öÄãÓ¦¸ÃÒªÖªµÀµÄ°É£¬²»ÖªµÀµÄ»°¾Íwsdl×Ô¼º»¹Ô­
Java´úÂë
/**  
 * XXXµÄwebService½Ó¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ