£¨×ª£©javaÓëflexͨÐÅ
£¨×ª£©javaÓëflexͨÐÅ
Ò»¡¢×¼±¸£º
·þÎñ¶Ë£ºJDK1.5 £¨Õâ¸ö²»ÓýéÉÜÁË°É£¿£©
·þÎñ¶ËIDE£ºeclipse £¨ËüµÄÖ÷Ò³£©
¿Í»§¶Ë£ºFLEX 3 £¨Adobe® Flex® 3 ÊÇÓÃÓÚ¹¹½¨ºÍά»¤ÔÚËùÓÐÖ÷Òªä¯ÀÀÆ÷¡¢×ÀÃæºÍ²Ù×÷ϵͳһÖµز¿ÊðµÄ¼«¾ß±íÏÖÁ¦µÄ Web Ó¦ÓóÌÐòµÄ¸ßЧÂʵĿª·ÅÔ´Âë¿ò¼Ü¡££©
¿Í»§¶ËIDE£ºFlex Builder 3 £¨ËüµÄ¹Ù·½ÕªÒªÒ³£©
¶þ¡¢Ôµ·ÖµÄÏàÓö£¨½¨Á¢Á¬½Ó£©£º
¼ÈÈ»ÊÇͨÐÅ£¬µ±È»µÚÒ»²½¾ÍÊÇÒª½¨Á¢Á¬½ÓÀ²¡£ÎÒÃÇ»¹ÊÇÓÃ×î¼òµ¥µÄ¿´´úÂëµÄ·½Ê½À´¿ªÊ¼ÎÒÃǵÄÁ¬½Ó¡£
==========================================
==·þÎñ¶Ë´úÂ룺Jserver1.java
==========================================
import java.net.*;
import java.io.*;
public class Jserver1 {
public static void main(String[] args) {
ServerSocket server=null;
try{
server=new ServerSocket(719);//Ôڶ˿Ú719½¨Á¢Ò»¸ö·þÎñÆ÷Ì×½Ó×Ö¶ÔÏó
System.out.println("·þÎñ¶ËµÈ´ý");
while(true){
System.out.println("µÈ´ý¿Í»§»ú");
Socket newSocket=server.accept();//¿Í»§¶ËÏòÎÒÃǽ¨Á¢µÄ·þÎñÆ÷Ì×½Ó×Ö·¢ËÍÁ¬½ÓÇëÇó,ÔòÏòÏÂÖ´ÐÐ
System.out.println("ÒÑÓë¿Í»§»úÁ¬½Ó");
}
}catch(IOException ie)
{
System.out.println(ie);
}finally{
try
{
if(server!=null) server.close();//¹Ø±Õ·þÎñÆ÷Ì×½Ó×Ö¡£ÎªÊ²Ã´ÒªÓÃfinally¹Ø¼ü×ÖÀ´×öÕâ¸öÊÂÄØ£¿HOHO thinking in javaÀï´óʦÒѾ˵µÃºÜÇå³þÁË£¬¾ÍÊÇÎÞÂÛ³öÏÖʲôÒì³££¬¶¼±£Ö¤ÎÒÃǵķþÎñ¶ËÌ×½Ó×ÖÄܱ»¹Ø±Õ¡£
}catch(IOException ie){}
}
}
¸´ÖÆ´úÂë
¸Â¸Â£¬ÔõôÑù ×¢ÊÍдµÃ¹»Çå³þÁË°É£¿OK ÈÃÎÒÃDZàÒëÔËÐУ¬µÃµ½µÄ½á¹ûÓ¦¸ÃÈçͼ£º
OK ÔÙÈÃÎÒÃÇÀ´¿´¿´¿Í»§¶ËµÄ´úÂëÊÇÔõôÑùµÄ£º
==========================================
==¿Í»§¶Ë´úÂ룺Jclient1.mxml
===================================================
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creati f width="349" height="326">
<mx:Script>
<![CDATA[
import flash.net.Socket;
private var socket:Socket;
internal function initApp():void
{
&nb
Ïà¹ØÎĵµ£º
HMAC
HMAC£¨Hash Message Authentication Code£¬É¢ÁÐÏûÏ¢¼ø±ðÂ룬»ùÓÚÃÜÔ¿µÄHashËã·¨µÄÈÏÖ¤ÐÒé¡£ÏûÏ¢¼ø±ðÂëʵÏÖ¼ø±ðµÄÔÀíÊÇ£¬Óù«¿ªº¯ÊýºÍÃÜÔ¿²úÉúÒ»¸ö¹Ì¶¨³¤¶ÈµÄÖµ×÷ΪÈÏÖ¤±êʶ£¬ÓÃÕâ¸ö±êʶ¼ø±ðÏûÏ¢µÄÍêÕûÐÔ¡£Ê¹ÓÃÒ»¸öÃÜÔ¿Éú³ÉÒ»¸ö¹Ì¶¨´óСµÄСÊý¾Ý¿é£¬¼´MAC£¬²¢½«Æä¼ÓÈëµ½ÏûÏ¢ÖУ¬È»ºó´«Êä¡ ......
Èç¹û˵½ñÄêJava¿ª·¢Æ½Ì¨ÓÐʲô´óʶù£¬ÄǾÍÒªÊý½«ÓÚÄêµ×·¢²¼µÄJava 7ÁË¡£½øÈë2010Ä꣬Java 7ÓÐÄÄЩеĽøÕ¹?ÕâЩеÄÌØÐÔ¸üжÔÎÒÃÇÓÐÄÄЩºÃ´¦?¸ÃÈçºÎʹÓÃ?Java 7µÄÐÔÄÜÈçºÎ?±¾ÎĽ«¸øÄã´ð°¸¡£
ÕâÀïµÄÄÚÈÝÖ÷Òª°üÀ¨Æä×î иüС¢Ò»Ð©´úÂëʵÀý¡¢¸úÒÔÇ°°æ±¾µÄJava½øÐÐÐÔÄܱȽÏÐèÒª²Î¿¼µÄһЩ»ù×¼¡¢ÒÔ¼°Ê²Ã´Ê±ºòËü²Å»á·¢²¼µÈÐÅÏ ......
ÔÚJavaÖУ¬²»Í¬µÄÀ඼ÓÐ×Ô¼ºµ¥¶ÀµÄCache»úÖÆ£¬ÊµÏֵķ½·¨Ò²¿ÉÄÜÓÐËù²»Í¬£¬ÎÄÕÂÁоÙÁËJavaÖг£¼ûµÄ¸÷ÀàCache»úÖƵÄʵÏÖ·½·¨£¬Í¬Ê±½øÐÐÁË×ۺϵıȽϡ£
OSCache
OSCacheÊǸöÒ»¸ö¹ã·º²ÉÓõĸßÐÔÄܵÄJava EE»º´æ¿ò¼Ü£¬OSCacheÄÜÓÃÓÚÈκÎJavaÓ¦ÓóÌÐòµÄÆÕͨµÄ»º´æ½â¾ö·½°¸¡£
OSCacheÓÐÒÔÏÂÌص㣺»º´æÈκζÔÏó£¬Äã¿ÉÒÔ²»ÊÜÏÞÖƵ ......
MysqlÔÚĬÈÏÇé¿öϽ¨Á¢±íµÄ×Ö·û±àÂëÊÇlatin1£¬ËùÒÔÔÚ²åÈëÖÐÎÄʱ»á³ö´í¡£
eg£º
1¡¢²é¿´±í½¨Á¢µÄsqlÔ´Â룺
1: sqlÃüÁshow create table users
2:
3: ½á¹û£º
4: CREATE TABLE `users` (
5: `userID` int(10) unsigned NOT NULL AUTO_INCREMENT,
6: `userName` varchar(4 ......
ÖÐС
JavaÖй²ÓÐÈý¸öÒÆλ²Ù×÷·û£¬·Ö±ðÊÇ£º
<<£º×óÒƲÙ×÷£¬ËùÓвÙ×÷ÊýÏò×óÒƶ¯£¬Ã¿ÒÆһλ×îÓÒ±ßÓÃ0²¹³ä
>>£º´ø·ûºÅλÓÒÒÆ£ºÁ¬Í¬·ûºÅλһÆðÓÒÒÆ£¬Ã¿ÒÆһλ×î×ó±ßÓ÷ûºÅλ²¹³ä
>>>£ºÎÞ·ûºÅÓÒÒÆ£ºÁ¬Í¬·ûºÅλһÆðÓÒÒÆ£¬Ã¿ÒÆһλ×î×ó±ßÓÃ0²¹³ä
ÒÆλ²Ù×÷·ûÖ»ÄÜ×÷ÓÃÓÚÕûÊýÀàÐÍ£¬¼´byte£¬short£¬char£¬i ......