java Ïà¶Ô·¾¶ ¾ø¶Ô·¾¶ classes bin ¸ùĿ¼
³¢ÊÔÓÃDOM4j½âÎöspringÅäÖÃÎļþʱ,µÚÒ»²½¶ÁÈ¡Îļþʱ£¬»ñȡ·¾¶¾ÍÓöµ½ÁËÎÊÌ⣬¡£¡£¡£¾¹ýgoogleÁËn+log n ´Î¸öÒ³Ã棬²ÅËãÓÐÁ˸ö´ÖdzµÄÈÏʶ£¬ÏÂÃæ¾ÍÈÃÎÒÓüò¶ÌµÄ»°ÓïÀ´×ܽáһϣ¨ºÃÏñÕâ¶Î¾ÍÈ«ÊÇ·Ï»°¡£¡£¡££©¡£¡£¡£
1¡¢springµÄÅäÖÃÎļþ´æ·ÅλÖÃÓÉweb.xmlÀïµÄcontextConfigLocationÀ´È·¶¨£¬Ò»°ãÊÇ·ÅÔÚweb-inf»òÕßÊÇsrc¸ùĿ¼ÏÂ
2¡¢¹ØÓÚsrcÎļþ¼ÐÀïµÄÎļþµÄ·¢²¼:source folderϵÄ.javaÎļþ£¬Éú³ÉµÄ.classÎļþ·ÅÔÚoutput folderÖС£¶ø½«source folderÖеķÇ.javaÎļþÖ±½Ó¿½±´µ½output folder£¨eclipse»áÖ±½Ó¿½±´È«²¿µÄ·Ç.javaÎļþ£¬intellij IDEA¿ÉÒÔÅäÖÿ½±´ÄÄЩÀ©Õ¹ÃûµÄÎļþ£©¡£ outputÎļþ¼ÐÒ»°ãÖ¸µÄÊÇc/sµÄbinºÍb/sµÄclasses¡£
3¡¢ÓÃSAXReader.reader¶ÁȡʱÐèÒªÖªµÀÎļþµÄ·¾¶ ¡£
ÎÒÁгöÒ»¶Î´úÂ룬´ó¼Ò¸ÐÊÜһϰÉ
System.out.println(this.getClass().getClassLoader().getResource("com/lavasoft/res/a.txt"));
System.out.println(this.getClass().getResource("/com/lavasoft/res/a.txt"));
System.out.println(this.getClass().getResource("").getPath());
System.out.println(this.getClass().getResource("/").getPath());
System.out.println(this.getClass().getClassLoader().getResource("").getPath());
System.out.println(Thread.currentThread().getContextClassLoader().getResource("").getPath());
System.out.println(System.getProperty("user.dir"));
getclass()Êǵ±Ç°µÄÀàʵÀý£¬µÃµ½µÄÊÇsrcϵ±Ç°ÀàµÄĿ¼£»getclassloader()ÊÇÀàµÄ×°ÔØÆ÷£¬µÃµ½µÄÊÇsrc¸ùĿ¼¡£"/"±íʾµÄÊǸùĿ¼¡£
web-infĿ¼ÈçºÎÈ¡µÃ»¹ÔÚÃþË÷ÖУ¬¸÷λÓÐÖªµÀµÄ£¬Çë²»Áߴͽ̡£
×îºóÌùһƪÎҸоõ×ܽáµÃºÜºÃµÄÎÄÕ£º
http://imyself.javaeye.com/blog/460706
ÔÙÀ´Ò»Æª Àà¼ÓÔØ·¾¶ ÔÀíµÄÎÄÕ jwitch£º
http://www.blogjava.net/Unmi/archive/2007/09/10/144101.html
»¹ÓÐÕâƪҲÐèÒªÑо¿Ò»Ï£º
http://www.javaeye.com/topic/7871
Ïà¹ØÎĵµ£º
¸Õ²Å¿´¼ûȺÀïµÄÒ»¸öÅóÓÑÔÚÎʶÓÁеÄʹÓã¬È·ÊµÔÚÏÖʵµÄд´úÂëÖкÜÉÙʹÓöÓÁеģ¬·´ÕýÎÒÊÇ´ÓÀ´Ã»Ê¹Óùý¡£Ö»ÊÇѧÊý¾Ý½á¹¹µÄʱºòѧ¹ý¡£
ÏÂÃæÊÇÎÒдµÄÒ»¸öСÀý×Ó£¬Ï£ÍûÓв»×ãÖ®´¦ÇëÌá³ö¸ÄÕý¡£O(∩_∩)O~
¿´´úÂ룺
import java.util.LinkedList;
import java.util.Queue;
public class TestQueue
{
/**
* @param ......
javaö¾Ù
ΪʲôҪ¶¨Òåö¾Ù£¿
ÎÊÌ⣺Ҫ¶¨ÒåÐÇÆÚ¼¸»òÐÔ±ðµÄ±äÁ¿£¬¸ÃÔõô¶¨Ò壿¼ÙÉèÓÃ1-7·Ö±ð±íʾÐÇÆÚÒ»µ½ÐÇÆÚÈÕ£¬µ«ÓÐÈË¿ÉÄÜ»áд³Éint weekday = 0;
ö¾Ù¾ÍÊÇÒªÈÃij¸öÀàÐ͵ıäÁ¿µÄÈ¡ÖµÖ»ÄÜΪÈô¸É¸ö¹Ì¶¨ÖµÖеÄÒ»¸ö£¬·ñÔò£¬±àÒëÆ÷¾Í»á±¨´í£¬Ã¶¾Ù¿ÉÒÔÈñàÒëÆ÷ÔÚ±àÒëʱ¾Í¿ÉÒÔ¿ØÖƳÌÐòÖÐÌîдµÄ·Ç·¨Öµ£¬ÆÕͨ±äÁ¿µÄ·½Ê½ÔÚ¿ª·¢½×¶ ......
¸ÅÊö
Èç¹ûÄãÖªµÀÔõÑùÔÚjavaÖÐʹÓÃÈÕÆÚ£¬ÄÇôʹÓÃʱ¼äºÍËü²Å²»¶àÒ»Ñù¼òµ¥¡£ÕâƪÎÄÕ¸æËßÄãÔõÑù°ÑËûÃǵIJî±ðÁªÏµÆðÀ´¡£Robert Nielsen»¹¸æËßÄãÔõÑùʹÓÃjavaÀ´¼ÆËãµÖ´ïº½°àºÍÖÆÔì¹ý³ÌµÄʱ¼ä¡£
×÷ÕߣºRobert Nielsen
·Ò룺Cocia Lin
ÕâƪÎÄÕÂÊÇÔÚÎÒ·¢±í¹ýµÄ<¼ÆËãJavaʱ¼ä>(ÒëÕß:ÒѾ·ÒëÍê³É)µÄ»ù´¡Éϵġ£ÔÚÕâÀΠ......
ת×ÔÆäËûÍøÕ¾
ºËÐÄÌáʾ£ºµÚÒ»²½
³ä·ÖÀí½âSocket 1.
ʲôÊÇsocket
Ëùνsocket
ͨ³£Ò²³Æ×÷Ì×½Ó×Ö£¬ÓÃÓÚÃèÊöIP
µØÖ·ºÍ¶Ë¿Ú£¬ÊÇÒ»¸öͨÐÅÁ´µÄ¾ä±ú¡£Ó¦ÓóÌÐòͨ³£Í¨¹ýÌ×½Ó×ÖÏòÍø...
ÍƹãºÍÆÕ¼°Java
¼¼Êõ£¬Îª¹úÄÚÖÚ¶àµÄJava
°®ºÃÕßÌṩһ¸ö“
ƽµÈ×ÔÓÉÐ×÷´´Ôì”
µÄ¿ª·Åʽ½»Á÷»·¾³£¬ÌṩJava
רÌâ ......
2. ²»Òª×öÖظ´µÄ¹¤×÷¡£
ʹÓó£¼ûµÄ¡¢¾¹ý֤ʵµÄ¿ò¼Ü£¬Èç Apache Struts¡¢JavaServer Faces ºÍ Eclipse RCP¡£Ê¹Óþ¹ý֤ʵµÄģʽ¡£
»Øµ½ÎÒÃÇ¿ªÊ¼°ïÖú¿Í»§Ê¹ÓøճöÏÖµÄ Java EE ±ê×¼µÄʱºò£¬ÎÒÃÇ·¢ÏÖ£¨ºÍÐí¶àÆäËûÈËÒ»Ñù£©£¬Í¨¹ýÖ±½ÓʹÓûù´¡µÄ Servlet ºÍ JSP ¹æ·¶¹¹½¨ UI Ó¦ÓóÌÐòÀ´¿ª·¢Óû§½Ó¿Ú¿ª·¢¿ò¼Ü£¬¿ÉÒÔ¼«´óµØÌḠ......