Java Logger»ã×Ü
À´×Ô£ºhttp://www.cnblogs.com/echozhjun/archive/2010/01/08/1641970.html
JDK Logger
JDK LoggerÔÚjava.util.logging°üÏÂÃ棬×Ô´ÓJDK1.4¾ÍÓÐÁË£¬¿ÉÊÇÒòΪlog4jµÄ´æÔÚ£¬Õâ¸öLoggerÒ»Ö±³ÁĬ×Å¡£Java×Ô´øµÄLogger£¬¼¶±ð±ÈLog4j»¹ÒªÏêϸ£¬µ«ÊÇÈç¹ûÐèÒª×Ô¶¨ÒåÈÕÖ¾Êä³ö¸ñʽ£¬ÐèÒª×Ô¼ºÊµÏÖFormatter£¬ÓÐЩ²»·½±ã¡£
Log4j
Log4jÊÇApacheµÄÒ»¸ö¿ª·ÅÔ´´úÂëÏîÄ¿£¬Í¨¹ýʹÓÃLog4j£¬ÎÒÃÇ¿ÉÒÔ¿ØÖÆÈÕÖ¾ÐÅÏ¢ÊäË͵ÄÄ¿µÄµØÊÇ¿ØÖÆ̨¡¢Îļþ¡¢GUI×é¼þ¡¢ÉõÖÁÊÇÌ×½Ó¿Ú·þÎñ Æ÷¡¢NTµÄʼþ¼Ç¼Æ÷¡¢UNIX SyslogÊØ»¤½ø³ÌµÈ£»Óû§Ò²¿ÉÒÔ¿ØÖÆÿһÌõÈÕÖ¾µÄÊä³ö¸ñʽ£»Í¨¹ý¶¨ÒåÿһÌõÈÕÖ¾ÐÅÏ¢µÄ¼¶±ð£¬Óû§Äܹ»¸ü¼ÓϸÖµؿØÖÆÈÕÖ¾µÄÉú³É¹ý³Ì¡£ÕâЩ¿ÉÒÔͨ¹ýÒ»¸ö ÅäÖÃÎļþÀ´Áé»îµØ½øÐÐÅäÖ㬶ø²»ÐèÒªÐ޸ijÌÐò´úÂë¡£
Slf4j
¼òµ¥ÈÕ¼ÇÃÅÃæ(Facade)SLF4JÊÇΪ¸÷ÖÖloging APIsÌṩһ¸ö¼òµ¥Í³Ò»µÄ½Ó¿Ú£¬´Ó¶øʹµÃ×îÖÕÓû§Äܹ»ÔÚ²¿ÊðµÄʱºòÅäÖÃ×Ô¼ºÏ£ÍûµÄloging APIsʵÏÖ¡£ Logging APIʵÏּȿÉÒÔÑ¡ÔñÖ±½ÓʵÏÖSLF4J½ÓµÄloging APIsÈ磺 NLOG4J¡¢SimpleLogger¡£Ò²¿ÉÒÔͨ¹ýSLF4JÌṩµÄAPIʵÏÖÀ´¿ª·¢ÏàÓ¦µÄÊÊÅäÆ÷ÈçLog4jLoggerAdapter¡¢JDK14LoggerAdapter¡£
Apache-common-logging
Apache-common-loggingÊÇApacheµÄÓÖÒ»¸ö¿ª·ÅÔ´´úÂëÏîÄ¿£¬Îª¸÷ÖÖloging APIsÌṩͳһµÄ½Ó¿Ú£¬´Ó¶øʹµÃÓû§Äܹ»ÔÚÔËÐÐʱ¶¯Ì¬µÄ¾ö¶¨×Ô¼ºÏ£ÍûʹÓõÄloging APIsʵÏÖ¡£Apache Common-Loggingͨ¹ý¶¯Ì¬²éÕҵĻúÖÆ£¬ÔÚ³ÌÐòÔËÐÐʱ×Ô¶¯ÕÒ³öÕæÕýʹÓõÄÈÕÖ¾¿â¡£Apache Common-LoggingʹÓÃÁËClassLoaderÑ°ÕÒºÍÔØÈëµ×²ãµÄÈÕÖ¾¿â£¬ËùÒÔÔÚÐèÒª¶à¸öClassLoader±ÈÈçOSGI±à³ÌµÄʱºò¾Í»á³öÏÖÎÊÌâÁË¡£
Logback
LogbackÊÇÓÉlog4j´´Ê¼ÈËÉè¼ÆµÄÓÖÒ»¸ö¿ªÔ´ÈÕ¼Ç×é¼þ¡£logbackµ±Ç°·Ö³ÉÈý¸öÄ£¿é£ºlogback-core,logback- classicºÍlogback-access¡£logback-coreÊÇÆäËüÁ½¸öÄ£¿éµÄ»ù´¡Ä£¿é¡£logback-classicÊÇlog4jµÄÒ»¸ö ¸ÄÁ¼°æ±¾¡£´ËÍâlogback-classicÍêÕûʵÏÖSLF4J APIʹÄã¿ÉÒԺܷ½±ãµØ¸ü»»³ÉÆäËüÈÕ¼ÇϵͳÈçlog4j»òJDK14 Logging¡£logback-access·ÃÎÊÄ£¿éÓëServletÈÝÆ÷¼¯³ÉÌṩͨ¹ýHttpÀ´·ÃÎÊÈռǵŦÄÜ¡£
Apache commons logging×Ô¶¯²éÕÒµ±Ç°ÊµÏÖLog˳Ðò
1¡¢Ê×ÏÈÔÚclasspathÏÂÑ°ÕÒ×Ô¼ºµÄÅäÖÃÎļþcommons-logging.properties£¬Èç¹ûÕÒµ½£¬ÔòʹÓÃÆäÖж¨ÒåµÄLogʵÏÖÀࣻ
2¡¢Èç¹ûÕÒ²»µ½commons-logging.propertiesÎļþ£¬ÔòÔÚ²éÕÒÊÇ·ñÒѶ¨Òåϵͳ»·¾³±äÁ¿org.apache.commons.logging.Log£¬ÕÒµ½ÔòʹÓÃÆä
Ïà¹ØÎĵµ£º
Ä¿±ê£ºÊµÏÖÒ»¸öºº×Ö×Ö·û´®°´ººÓïÆ´Òô×Öµä˳ÐòÅÅÐò¡£
ÔÀí£ºÔÚwindows»·¾³µÄgbk×Ö·û¼¯Àºº×ÖÊÇ°´ººÓïÆ´Òô×Öµä˳Ðò±àÂëµÄ£¬Èç“´¡”ÊÇ B4A1£¬“´¢”ÊÇB4A2¡£ÕâÀïÓиöÎÊÌâ¾ÍÏñÉÏÃæµÄ´¢ºÍ´¡ÕâÑùµÄͬÒô×ÖÖ»ÄÜ×ñÕÕ±àÂëµÄ˳ÐòÁË£¬ÁíÍâ¶àÒô×ÖÒ²µÃ×ñÕÕ±àÂë˳Ðò¡£Éè¼Æ˼·ÊÇÏȲð·Öºº×Ö×Ö·û´®Îª×Ö·ûÊý×飬»ñµÃà ......
³£ÓõÄÉè¼Æģʽ·ÖΪÈçÏ 23 ÖÖģʽ£º
Abstract Factory£º
Ìṩһ¸ö´´½¨Ò»ÏµÁÐÏà¹Ø»òÏ໥ÒÀÀµ¶ÔÏóµÄ½Ó¿Ú£¬¶øÎÞÐèÖ¸¶¨Ëü
ÃǾßÌåµÄÀà¡£
Adapter£º
½«Ò»¸öÀàµÄ½Ó¿Úת»»³É¿Í»§Ï£ÍûµÄÁíÒ»¸ö½Ó¿Ú£¬Ê¹µÃÔÀ´ÓÉÓÚ½Ó¿Ú²»¼æÈݶø²»ÄÜÒ»Æð¹¤×÷µÄÄÇЩÀà¿ÉÒÔÒ»Æð¹¤×÷¡£
Bridge£º
½«
³éÏ󲿷ÖÓëËüµÄʵÏÖ²¿·Ö·ÖÀ룬ʹ֮¿ÉÒÔ¶ÀÁ¢±ä»¯¡ ......
´úÂëÑÝʾ£º
http://code.google.com/p/finance-p/source/browse/#svn/trunk
±¾ÎÄÖ÷Òª½²½âÔÚjava»·¾³ÏÂʹÓÃjQuery½øÐÐJSONÊý¾Ý´«Ë͵Ľ»»¥¹ý³Ì
²Î¿¼¸ù¾Ý×÷ÕßµÄÕËÎñ¹ÜÀíϵͳ(¸öÈË°æ) Ô´ÂëÏÂÔØ ½²½â
Ò»¡¢Ïà¹Ø¼¼Êõ¡¢¹¤¾ß¼ò½é
1¡¢¼òµ¥½éÉÜÒ»ÏÂJSON£¬JSONÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ¡£ Ò×ÓÚÈËÔĶÁºÍ±àд¡£Í¬Ê±Ò²Ò×ÓÚ»úÆ÷½âÎöº ......
Ï̳߳ØÀàΪ java.util.concurrent.ThreadPoolExecutor£¬³£Óù¹Ôì·½·¨Îª£º ThreadPoolExecutor(int corePoolSize, int maximumPoolSize,
long keepAliveTime, TimeUnit unit,
BlockingQueue<Runnable> workQueue,
RejectedExecutionHandler handler) corePoolSize£º Ï̳߳Øά»¤Ï̵߳Ä×îÉÙÊýÁ¿ ......
¹Ø¼ü×Ö: json java
JSON-libÕâ¸öJavaÀà°üÓÃÓÚ°Ñbean,mapºÍXMLת»»³ÉJSON²¢Äܹ»°ÑJSONת»Ø³ÉbeanºÍDynaBean¡£
ÏÂÔصØÖ·:http://json-lib.sourceforge.net/
»¹ÒªÐèÒªµÄµÚ3·½°ü:
org.apache.commons(3.2ÒÔÉÏ°æ±¾)
org.apache.oro
net.sf.ezmorph(ezmorph-1.0.4.jar)
nu.xom
1¡¢List
Java´úÂë
boolean[] bool ......