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

javaÔðÈÎÁ´Ä£Ê½

ÔðÈÎÁ´Ä£Ê½
Ò»¡¢¶¨ÒåÓë½á¹¹
´ÓÃû×ÖÉÏ´ó¸ÅÒ²Äܲ³öÕâ¸öģʽµÄ´ó¸ÅÄ£Ñù——ϵͳÖн«»á´æÔÚ¶à¸öÓÐÀàËÆ´¦ÀíÄÜÁ¦µÄ¶ÔÏó¡£µ±Ò»¸öÇëÇó´¥·¢ºó£¬ÇëÇó½«ÔÚÕâЩ¶ÔÏó×é³ÉµÄÁ´ÌõÖд«µÝ£¬Ö±µ½ÕÒµ½×îºÏÊʵēÔðÈΔ¶ÔÏ󣬲¢½øÐд¦Àí¡£
¡¶Éè¼Æģʽ¡·ÖиøËüµÄ¶¨ÒåÈçÏ£ºÊ¹¶à¸ö¶ÔÏó¶¼Óлú»á´¦ÀíÇëÇ󣬴Ӷø±ÜÃâÇëÇóµÄ·¢ËÍÕߺͽÓÊÕÕßÖ®¼äµÄñîºÏ¹Øϵ¡£½«ÕâЩ¶ÔÏóÁ¬³ÉÒ»ÌõÁ´£¬²¢ÑØ×ÅÕâÌõÁ´´«µÝ¸ÃÇëÇó£¬Ö±µ½ÓÐÒ»¸ö¶ÔÏó´¦ÀíËüΪֹ¡£
´Ó¶¨ÒåÉÏ¿ÉÒÔ¿´³ö£¬ÔðÈÎÁ´Ä£Ê½µÄÌá³öÊÇΪÁË“½âñ¬ÒÔÓ¦±äϵͳÐèÇóµÄ±ä¸üºÍ²»Ã÷È·ÐÔ¡£
ÏÂÃæÊÇ¡¶Éè¼Æģʽ¡·Öиø³öµÄÊÊÓ÷¶Î§£º
1) Óжà¸öµÄ¶ÔÏó¿ÉÒÔ´¦ÀíÒ»¸öÇëÇó£¬Äĸö¶ÔÏó´¦Àí¸ÃÇëÇóÔËÐÐʱ¿Ì×Ô¶¯È·¶¨¡£
2) ÄãÏëÔÚ²»Ã÷È·Ö¸¶¨½ÓÊÕÕßµÄÇé¿öÏ£¬Ïò¶à¸ö¶ÔÏóÖеÄÒ»¸öÌá½»Ò»¸öÇëÇó¡£
3) ¿É´¦ÀíÒ»¸öÇëÇóµÄ¶ÔÏ󼯺ÏÓ¦±»¶¯Ì¬Ö¸¶¨¡£
ÔðÈÎÁ´Ä£Ê½ÕæµÄÄܸø·¢ËÍÕߺͽÓÊÕÕßÖ®¼ä½âñÕâºÃÏñºÜÉñÆ棩Âð£¿ÏÈÀ´¿´ÏÂËüµÄ×é³É½ÇÉ«¡£Õâ¸öÎÊÌâÎÒ»áÔÚÏÂÃæÌá¼°¡£
ÔðÈÎÁ´Ä£Ê½ÓÉÁ½¸ö½ÇÉ«×é³É£º
1) ³éÏó´¦ÀíÕß½ÇÉ«£¨Handler£©£ºËü¶¨ÒåÁËÒ»¸ö´¦ÀíÇëÇóµÄ½Ó¿Ú¡£µ±È»¶ÔÓÚÁ´×ӵIJ»Í¬ÊµÏÖ£¬Ò²¿ÉÒÔÔÚÕâ¸ö½ÇÉ«ÖÐʵÏÖºó¼ÌÁ´¡£
2) ¾ßÌå´¦ÀíÕß½ÇÉ«£¨Concrete Handler£©£ºÊµÏÖ³éÏó½ÇÉ«Öж¨ÒåµÄ½Ó¿Ú£¬²¢´¦ÀíËüËù¸ºÔðµÄÇëÇó¡£Èç¹û²»ÄÜ´¦ÀíÔò·ÃÎÊËüµÄºó¼ÌÕß¡£
ÖÁÓÚÀàͼ²»·ÅÒ²°Õ¡£±Ï¾¹¾ÍÊÇÒ»¸ö¼Ì³Ð»òÕßʵÏÖ¡£
Èý¡¢´¿Óë²»´¿
ÔðÈÎÁ´Ä£Ê½µÄ´¿Óë²»´¿µÄÇø±ð£¬¾ÍÏñºÚè¡¢°×èµÄÇø±ðÒ»Ñù¡£²»Òª¿ÌÒâµÄȥʹ×Ô¼ºµÄ´úÂëÀ´·ûºÏÒ»¸öģʽµÄ¹«Ê½¡£Ö»ÒªÄܹ»Ê¹´úÂë½µµÍñîºÏ¡¢Ìá¸ßÖØÓã¬Âú×ãϵͳÐèÇó²¢ÄܺܺõÄÊÊÓ¦±ä»¯¾ÍºÃÁË¡£ÕýËùν£º¹ÜËüºÚè°×裬ץסÀÏÊó¾ÍÊǺÃ裡
´¿µÄÔðÈÎÁ´Ä£Ê½£¬¹æ¶¨Ò»¸ö¾ßÌå´¦ÀíÕß½ÇÉ«Ö»ÄܶÔÇëÇó×÷³öÁ½ÖÖ¶¯×÷£º×Ô¼º´¦Àí£»´«¸øϼҡ£²»ÄܳöÏÖ´¦ÀíÁËÒ»²¿·Ö£¬°ÑʣϵĴ«¸øÁËϼҵÄÇé¿ö¡£¶øÇÒÇëÇóÔÚÔðÈÎÁ´ÖбØÐë±»´¦Àí£¬¶ø²»ÄܳöÏÖÎÞ¹û¶øÖյĽá¾Ö¡£
·´Ö®£¬Ôò¾ÍÊDz»´¿µÄÔðÈÎÁ´Ä£Ê½¡£
²»´¿µÄÔðÈÎÁ´Ä£Ê½»¹ËãÊÇÔðÈÎÁ´Ä£Ê½Â𣿱ÈÈçÒ»¸öÇëÇó±»²¶»ñºó£¬Ã¿¸ö¾ßÌå´¦ÀíÕ߶¼³¢ÊÔÈ¥´¦ÀíËü£¬²»¹Ü½á¹ûÈçºÎ¶¼½«ÇëÇóÔÙ´Îת·¢¡£ÎÒÈÏΪÕâÖÖ·½Ê½µÄʵ ÏÖ£¬Ëã²»ËãÊÇÔðÈÎÁ´Ä£Ê½µÄÒ»ÖÖµ¹²»ÖØÒª£¬ÖØÒªµÄÊÇÎÒÃÇÒ²ÄÜ´ÓÖÐÌåζµ½ÔðÈÎÁ´Ä£Ê½µÄ˼Ï룺ͨ¹ý½«¶à¸ö´¦ÀíÕßÖ®¼ä½¨Á¢ÁªÏµ£¬À´´ïµ½ÇëÇóÓë¾ßÌåµÄij¸ö´¦ÀíÕߵĽâ ñî¡£
 
 
¹ýÂËÆ÷½Ó¿Ú: Filter
package com.bjsxt.chain;
 
public interface Filter {
    public void


Ïà¹ØÎĵµ£º

JAVAÓÅ»¯±à³Ì


java´úÂëÓÅ»¯±à³Ì
1.JVM ¹ÜÀíÁ½ÖÖÀàÐ͵ÄÄÚ´æ:¶ÑÄÚ´æ(heap),Õ»ÄÚ´æ(stack),¶ÑÄÚÔÚÖ÷ÒªÓÃÀ´´æ´¢³ÌÐòÔÚÔËÐÐʱ´´½¨»òʵÀý»¯µÄ¶ÔÏóÓë±äÁ¿.¶øÕ»ÄÚ´æÔòÊÇÓÃÀ´´æ´¢³ÌÐò´úÂëÖÐÉùÃ÷Ϊ¾²Ì¬(static)(»ò·Ç¾²Ì¬)µÄ·½·¨.
2.JVM ÖжÔÏóµÄÉúÃüÖÜÆÚ,´´½¨½×¶Î,Ó¦Óý׶Î,²»¿ÉÊӽ׶Î,²»¿Éµ½´ï½×¶Î,¿ÉÊÕ¼¯½×¶Î,ÖÕ½á½×
¶Î,ÊͷŽ׶Î
3.±ÜÃâÔÚÑ ......

JAVAÊý¾Ý¿âÁ¬½Ó´óÈ«

1¡¢Oracle8/8i/9iÊý¾Ý¿â£¨thinģʽ£©
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@localhost:1521:orcl"; //orclΪÊý¾Ý¿âµÄSID
String user="test";
String password="test";
Connection conn= DriverManager.getConnection(url,user,password);
 
2¡¢DB ......

JAVA×Ö·û´®Àà

import java.util.*;
import java.util.regex.Pattern;
public class StrTools {
/**
* ·Ö¸î×Ö·û´®
*
* @param str String ԭʼ×Ö·û´®
* @param splitsign String ·Ö¸ô·û
* @return String[] ·Ö¸îºóµÄ×Ö·û´®Êý×é
*/
@SuppressWarnings("unchecked")
public static String[] split(Stri ......

ÓÃJAX WSʵÏÖjavaµ÷ÓÃwebServic

À´¸ö¼òµ¥µãµÄ£º
1.½¨¸ö¾ßÌåµÄ·þÎñʵÏÖ£º
package com.webservice;
@WebService
public class Warehouse {
 private Map<String, Double> prices;
 public Warehouse() {
  prices = new HashMap<String, Double>();
  prices.put("Blackwell Toaster", 24.95);
 & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ