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
Ïà¹ØÎĵµ£º
£¨
1
£©
+=
:sum += 1;
Ï൱ÓÚ
sum = sum + 1;
£¨
2
£©
++ --
:i++ i
¼Ó
1, i-- i
¼õ
1, ++
»ò
—
·ÅÔÚÊýÖµºó£¬±íʾִÐÐÔËËãºó¼Ó£¨¼õ£©
1
£¬·´ÕýÊýֵǰ±íʾִÐÐÔËËãǰ¼Ó£¨¼õ£©
1
£¨
3
£©
?
: :
int n = a<10?1:2
±íʾÈç¹û
a
СÓÚ
10
Ôò
n
µÈÓÚ
1
·ñÔòµÈÓÚ
2
£¨
4
......
PROCEDURE user_Login (
i_AuthID IN user_UserPass.UserID%TYPE, --Óû§´úÂë
i_FunctionCode IN &n ......
.»ù±¾¸ÅÄîµÄÀí½â
¾ø¶Ô·¾¶£º¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶£¬(URLºÍÎïÀí·¾¶)ÀýÈ磺
C:xyz est.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶¡£http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸öURL¾ø¶Ô·¾¶¡£
Ïà¶Ô·¾¶£ºÏà¶ÔÓëij¸ö»ù׼Ŀ¼µÄ·¾¶¡£°üº¬WebµÄÏà¶Ô·¾¶£¨HTMLÖеÄÏà¶ÔĿ¼£©£¬ÀýÈ磺ÔÚ
ServletÖ ......
Java·ºÐÍ
ÓÉC++µÄÄ£°åº¯ÊýÒýÈë×Ô¶¨Òå·ºÐÍ
ÈçϺ¯ÊýµÄ½á¹¹ºÜÏàËÆ£¬½öÀàÐͲ»Í¬£º
int add(int x, int y) { return x + y;}
float add(float x, float y) { return x + y;}
double add(double x ,double y) {return x + y;}
C++ÓÃÄ£°åº¯Êý½â¾ö£¬Ö»Ð´Ò»¸öͨÓ÷½·¨£¬Ëü¿ÉÒÔÊÊÓ¦¸÷ÖÖÀàÐÍ£¬Ê¾Òâ´úÂëÈçÏ£º
T add(T x, T y) ......