c#ÈçºÎµ÷ÓÃSSl(https)¼ÓÃܵÄjavaдµÄWeb Service
½ñÌìÁìµ¼·Ô¸ÀÒ»¸öÈÎÎñ,¾ÍÊÇÓÃ.net¼¼ÊõÈ¥ÌøÓÃjava¶ËдµÄwebservers,¶øÇÒÒª²ÉÓÃhttps·ÃÎÊ·½Ê½,Ç¿ÖÆÂÛÖ¤
String SecurelyStoredPassword = "adminsd";
ICredentials credentials = new NetworkCredential("admin", SecurelyStoredPassword, "");
ServicePointManager.CertificatePolicy = new MyCertificateValidation();
//н¨Ò»ÌõÊý¾Ý
WebReference.IwebService service = new WebReference.IwebService();
//string str = service.Url;
service.Url = System.Configuration.ConfigurationSettings.AppSettings["WebService.MocService"];
service.Credentials = credentials;
DataSet ds = new DataSet();
try
{
ds = ArrayToDataSet.ObjectArrayToDataSet(service.getAll("nq", "nqdev"));
int i = 0;
GV1.DataSource = ds.Tables[0];
}
catch (Exception e2)
{
&
Ïà¹ØÎĵµ£º
Ò»ÖøÃûÈí¼þ¹«Ë¾µÄjava±ÊÊÔËã·¨Ì⣡(2008-11-06 12:49:19)±êÇ©£ºjava ÃæÊÔÌâ it ·ÖÀࣺJ2SE
ÔÌâÈçÏ£ºÓÃ1¡¢2¡¢2¡¢3¡¢4¡¢5ÕâÁù¸öÊý×Ö£¬ÓÃjavaдһ¸ömainº¯Êý£¬´òÓ¡³öËùÓв»Í¬µÄÅÅÁУ¬È磺512234¡¢412345µÈ£¬ÒªÇó£º "4 "²»ÄÜÔÚµÚÈý룬 "3 "Óë "5 "²»ÄÜÏàÁ¬.
ÎÒ¿´ÁË»ØÌù¶¼Ã»Óкܺýâ¾ö£¬Ö÷ÒªÊÇûÓÐÅųýÖ ......
½üÈÕÔÚ±à³ÌÖÐÓõ½½Ó¿Ú֪ʶ,ÓÉÓڿα¾ÖжԽӿÚÃèÊö½ÏÉÙ,ËùÒÔÏë´ÓÍøÉϲéÕÒ×ÊÁÏ,µ«ÍøÉϵÄ×ÊÁÏ´ó¶àÒ²Ö»ÊÇÈß³¤µÄÃèÊö,ËùÒÔÔÚ´ËÌṩһ×Ô¼ºÐ´µÄʵÀý,¹©´ó¼Ò²Î¿¼:
ÔÌâÊÇÕâÑùµÄ£ºÔÚjavaÖУ¬¶¨ÒåÒ»¸ö½Ó¿Ú£¬ÉùÃ÷¼ÆË㳤·½ÐÎÃæ»ýºÍÖܳ¤µÄ³éÏó·½·¨£¬ÔÙÓÃÒ»¸öÀàȥʵÏÖÕâ¸ö½Ó¿Ú£¬ÔÙ±àдһ¸ö²âÊÔÀàȥʹÓÃÕâ¸ö½Ó¿Ú¡£
Ê×ÏÈ£¬½Ó¿Ú±ØÐëµ¥ ......
¶àÏß³ÌÊÇÕâÑùÒ»ÖÖ»úÖÆ£¬ËüÔÊÐíÔÚ³ÌÐòÖв¢·¢Ö´Ðжà¸öÖ¸ÁîÁ÷£¬Ã¿¸öÖ¸ÁîÁ÷¶¼³ÆΪһ¸öỊ̈߳¬±Ë´Ë¼ä»¥Ïà¶ÀÁ¢¡£ Ïß³ÌÓÖ³ÆΪÇáÁ¿¼¶½ø³Ì£¬ËüºÍ½ø³ÌÒ»ÑùÓµÓжÀÁ¢µÄÖ´ÐпØÖÆ£¬ÓɲÙ×÷ϵͳ¸ºÔðµ÷¶È£¬Çø±ðÔÚÓÚÏß³ÌûÓжÀÁ¢µÄ´æ´¢¿Õ¼ä£¬¶øÊǺÍËùÊô½ø³ÌÖеÄÆäËüÏ̹߳²ÏíÒ»¸ö´æ´¢¿Õ¼ä£¬ÕâʹµÃÏ̼߳äµÄͨÐÅÔ¶½Ï½ø³Ì¼òµ¥¡£
Ò»£ºÀí½â¶àÏß³Ì
& ......
JAVA annotationÈëÃÅ
×î½ü¶ÔspringÔ´Âë¸ÐÐËȤ£¬½ñÌì¿´µ½annotation²¿·Ö£¬ÂÔ¼ÇÖ®¡£
Ò». ×î³£¼ûµÄannotation
@Override:ÓÃÔÚ·½·¨Ö®ÉÏ£¬ÓÃÀ´¸æËß±ðÈËÕâÒ»¸ö·½·¨ÊǸÄд¸¸ÀàµÄ
@Deprecated:½¨Òé±ðÈ˲»ÒªÊ¹ÓþɵÄAPIµÄʱºòÓõÄ,±àÒëµÄʱºò»áÓòúÉú¾¯¸æÐÅÏ¢,¿ÉÒÔÉ趨ÔÚ ......
תÔØ×Ô http://www.cn-java.com/www1/?action-viewnews-itemid-8283
ÓÉÓÚͬһ½ø³ÌµÄ¶à¸öÏ̹߳²ÏíͬһƬ´æ´¢¿Õ¼ä£¬ÔÚ´øÀ´·½±ãµÄͬʱ£¬Ò²´øÀ´ÁË·ÃÎʳåÍ»Õâ¸öÑÏÖصÄÎÊÌâ¡£JavaÓïÑÔÌṩÁËרÃÅ»úÖÆÒÔ½â¾öÕâÖÖ³åÍ»£¬ÓÐЧ±ÜÃâÁËͬһ¸öÊý¾Ý¶ÔÏ󱻶à¸öÏß³Ìͬʱ·ÃÎÊ¡£
¡¡¡¡ÐèÒªÃ÷È·µÄ¼¸¸öÎÊÌ⣺
¡¡¡¡1)synchronized¹Ø¼ü×Ö¿ÉÒÔ×÷Ϊ ......