Flex+JavaÁ¬½ÓSQLServerÊý¾Ý¿â
Ê×ÏÈ£¬×öÒ»µã˵Ã÷¡£FlexÊDz»ÄÜÖ±½ÓÁ¬½ÓÊý¾Ý¿âµÄ£¬ÕâÒ»µã´ó¼ÒÐèÒªÖªµÀ£¬ËüÖ»Äܼä½ÓµØÁ¬½ÓÊý¾Ý¿â¡£FlexÖÐÌṩÁËÈýÖÖ·½Ê½£ºHttpService£¬WebService ºÍRemoteObject¡£ÆäÖÐHttpService¿ÉÒÔÖ±½Ó»ñÈ¡XMLÖеÄÊý¾Ý£¬»¹¿ÉÒÔͨ¹ýJSP,ASPÒÔ¼°PHP¶ÁÈ¡Êý¾Ý¿âÖеÄÊý¾Ý£¬Õâ¸ö±È½Ï¼òµ¥£¬¶øÇÒÍøÉÏÒ²ÓкܶàÀý×Ó£¬ÎҾͲ»¶à˵ÁË¡£WebServiceÎÒ²»¶®£¬Çë×Ô¼º²é×ÊÁÏ¡£ÎÒÒ»Ö±ÓõÄÊÇJAVA¶ÔÏóÁ¬½ÓÊý¾Ý¿â£¬¸Ð¾õÕâ¸öͦ·½±ã£¬¶øÇÒ J2EEµÄ¼¼ÊõÒѾºÜ³ÉÊì¡£½ñÌìµÄ½Ì³Ì¾ÍÊÇÒÔ Flex + JAVA + SQLServer»ñÈ¡Êý¾Ý¿â¹«¸æÐÅϢΪÀý¼òµ¥ËµÒ»ÏÂRemoteObjectµÄÓ÷¨¡£
Ç°Ìá
1.È·±£Äã°²×°ÁËFlex Data Service¡£Õâ¸ö¶ÔÓÚµ¥¸öCUPÎÞÏÞAPPÊÇÃâ·ÑµÄ£¬¿ÉÒÔÈ¥AdobeÏÂÔØ¡£Èç¹ûÖ»ÊǶÁÈ¡XMLÎļþÊDz»ÐèÒªÕâ¸öµÄ£¬Á¬½ÓÊý¾Ý¿â¾ÍÐèÒªËüÁË¡£
2.°²×°ÁËFlex Builder»òÕßÓÐFlex SDK¡£ÎÒÕâÀïʹÓõÄÊÇFlex Builder£¨IDE¾ÍÊÇ·½±ã°¡ ^_^£©¡£
3.°²×°ÁËSQLServerÊý¾Ý¿â¡£
4.°²×°ÁËJRUN»òÕßtomcat»òÆäËüµÄJ2EEÈÝÆ÷£¬ÒòΪ·¢²¼µÄʱºòÎÒÃǵijÌÐòÒªÔËÐÐÔÚJ2EEƽ̨ÉÏ¡£
5.°²×°ÁËJDK¡£
µÚÒ»²½£º´´½¨Êý¾Ý¿â
ÕâÀïÎÒÃÇÓÐÒ»¸ö¹«¸æ±í£¬±íÃûΪBulletin¡£½á¹¹ÈçÏ£º
×Ö¶ÎÃû³Æ ×Ö¶ÎÀàÐÍ ËµÃ÷
ID ×Ô¶¯±àºÅ ×Ô¶¯±àºÅ
title Nvarchar(100) 퉀date datatime ÈÕÆÚ
author Nvarchar(20) ×÷Õß
content ntext ÄÚÈÝ
ÔÚÊý¾Ý¿âÖд´½¨Õâ¸ö±í¡£±£´æÖ®ºó½øÈëÏÂÒ»²½¡£
µÚ¶þ²½£ºÔÚJAVAÖбàд»ñÈ¡¹«¸æµÄ´úÂë
Ê×ÏÈ£¬ÎÒÃÇÒª´´½¨Ò»¸ö¹«¸æÀàÀ´×¨Ãű£´æ»ñÈ¡µÄ¹«¸æÐÅÏ¢£¬´úÂëÈçÏ¡£
NoticeInfo.java
package net.zhuoqun.connectDB;
import java.util.Date;
public class
Ïà¹ØÎĵµ£º
JAVA annotationÈëÃÅ
×î½ü¶ÔspringÔ´Âë¸ÐÐËȤ£¬½ñÌì¿´µ½annotation²¿·Ö£¬ÂÔ¼ÇÖ®¡£
Ò». ×î³£¼ûµÄannotation
@Override:ÓÃÔÚ·½·¨Ö®ÉÏ£¬ÓÃÀ´¸æËß±ðÈËÕâÒ»¸ö·½·¨ÊǸÄд¸¸ÀàµÄ
@Deprecated:½¨Òé±ðÈ˲»ÒªÊ¹ÓþɵÄAPIµÄʱºòÓõÄ,±àÒëµÄʱºò»áÓòúÉú¾¯¸æÐÅÏ¢,¿ÉÒÔÉ趨ÔÚ ......
תÔØ×Ô http://littlefermat.blog.163.com/blog/static/59771167200962810120843/
Enum×÷ΪSunÈ«ÐÂÒý½øµÄÒ»¸ö¹Ø¼ü×Ö£¬¿´ÆðÀ´ºÜÏóÊÇÌØÊâµÄclass, ËüÒ²¿ÉÒÔÓÐ×Ô¼ºµÄ±äÁ¿£¬¿ÉÒÔ¶¨Òå×Ô¼ºµÄ·½·¨£¬¿ÉÒÔʵÏÖÒ»¸ö»òÕ߶à¸ö½Ó¿Ú¡£µ±ÎÒÃÇÔÚÉùÃ÷Ò»¸öenumÀàÐÍʱ£¬ÎÒÃÇÓ¦¸Ã×¢Òâµ½enumÀàÐÍÓÐÈçϵÄһЩÌØÕ÷¡£
1£®Ëü²»ÄÜÓÐpublicµÄ¹¹Ôìº¯Ê ......
Ìâ¼Æ£ºÕâÀï¸ø³öjava½âÎöxml£¬ÒÔ°ïÖúÈËÃÇÀí½âÐí¶àÈÝÆ÷ÊÇÔõô×öµÄ¡£¡£Ïñspring£¬strutsµÈ.
1.mysql.xml´úÂ룺
<?xml version="1.0" encoding="UTF-8"?>
<data>
<datasource>
<servername>localhost</servername>
<serverport>3306</serverport>
<databasen ......
¹ØÓÚjavaÐéÄâ»úʹÓÃÄÚ´æµÄ˼¿¼
JVM(javaÐéÄâ»ú)Æäʵ¾ÍÊDzÙ×÷ϵͳ(Èçwindows)ÉϵÄÒ»¸öÆÕͨ³ÌÐò(½ø³ÌÃû½Ðjava,Õâ¸ö³ÌÐò¿ÉÒÔ½âÊÍÖ´ÐÐclassÎļþ)¡£
µ±java½ø³ÌÆô¶¯Ê±»áÊ×ÏÈ·ÖÅäÒ»¿é¶ÑÄڴ棨×îСÄڴ棩£¬ÒÔºóÿµ±class×Ö½ÚÂë³ÌÐòÒªÇóJVM(java½ø³Ì)·ÖÅäÄÚ´æʱ£¬JVM
¾Í»áÔÚÔ¤ÏÈ·ÖÅäµÄÄÇ¿éÄÚ´æÉÏÃæΪclass×Ö½Ú ......