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

´«ÖDz¥¿Íjavaѧϰ ½ÌÓý°ì¹«ÏµÍ³4

½ñÌì¼ÌÐø½ÌÓý°ì¹«ÏµÍ³µÄÂọ́¬½ñÌìÖ÷Òª½²µÄÊÇȨÏÞÄ£¿é£º
      
1. ¼¯³É spring-security ¿ò¼Ü
      
1). ¼ÓÈë spring-security µÄÁ½¸ö jar °ü
      
2). ÔÚ web.xml ÎļþÖмÓÈë¼ÓÈë spring-security ¿ò¼ÜµÄ¹ýÂËÆ÷
      
3). н¨ applicationContext-security.xml ÅäÖÃÎļþ,²¢ÇÒ°Ñ security ×÷ΪĬÈϵÄÃüÃû¿Õ¼ä,
²¢½«Æäµ¼Èëµ½ applicationContext.xml ÖÐ
      
4). Éè¼ÆÁìÓòÄ£ÐÍ:
             
Authority -- ȨÏÞ
             
Resource -- ×ÊÔ´
             
Role -- ½ÇÉ«
             
Employee -- Ìí¼Ó Set<Role> roleSet
ÊôÐÔ
             
Resource ºÍ Authority Ϊ¶à¶Ô¶àµÄ¶ÔÓ¦¹Øϵ
             
Authority ºÍ Role Ϊ¶à¶Ô¶àµÄ¶ÔÓ¦¹Øϵ
             
Role ºÍ Employee Ϊ¶à¶Ô¶àµÄ¶ÔÓ¦¹Øϵ
             
ËùÒÔ»¹ÐèÒª 3 ¸ö¶îÍâµÄ¹ØÁª±í
             
** Êý¾Ý±íÉè¼Æ²Î¼û spring-security-2
      
5).
             
¢Ù. Ð޸ĵ±Ç°ÏµÍ³µÄ login.jsp Ò³Ãæ, ¸ÄΪ spring-security µÄµÇ¼ҳÃæ, ²¢ÇÒÔÚ
<http> ½ÚµãÖнøÐÐÅäÖÃ.
             
    ** ×¢Òâ:
spring-security ÔڵǼ³É¹¦ºó, ÀûÓà "Öض¨Ïò" תµ½ form-login ½Úµã¶ÔÓ¦µÄ
default-target-url ÊôÐÔ¶ÔÓ¦µÄÒ³Ãæ. ËùÒÔ²»ÄÜÖ±½Ó½«ÆäÅäÖÃΪ


Ïà¹ØÎĵµ£º

java Ïà¶Ô·¾¶ ¾ø¶Ô·¾¶ classes bin ¸ùĿ¼

³¢ÊÔÓÃDOM4j½âÎöspringÅäÖÃÎļþʱ,µÚÒ»²½¶ÁÈ¡Îļþʱ£¬»ñȡ·¾¶¾ÍÓöµ½ÁËÎÊÌ⣬¡£¡£¡£¾­¹ýgoogleÁËn+log n ´Î¸öÒ³Ã棬²ÅËãÓÐÁ˸ö´ÖdzµÄÈÏʶ£¬ÏÂÃæ¾ÍÈÃÎÒÓüò¶ÌµÄ»°ÓïÀ´×ܽáһϣ¨ºÃÏñÕâ¶Î¾ÍÈ«ÊÇ·Ï»°¡£¡£¡££©¡£¡£¡£
1¡¢springµÄÅäÖÃÎļþ´æ·ÅλÖÃÓÉweb.xmlÀïµÄcontextConfigLocationÀ´È·¶¨£¬Ò»°ãÊÇ·ÅÔÚweb-inf»òÕßÊÇsrc¸ùÄ¿Â¼Ï ......

JavaÀíÂÛÓëʵ¼ù:ÕýȷʹÓÃvolatile±äÁ¿

Java™ÓïÑÔ°üº¬Á½ÖÖÄÚÔÚµÄͬ²½»úÖÆ£ºÍ¬²½¿é£¨»ò·½·¨£©ºÍvolatile±äÁ¿¡£ÕâÁ½ÖÖ»úÖƵÄÌá³ö¶¼ÊÇΪÁËʵÏÖ´úÂëÏ̵߳ݲȫÐÔ¡£ÆäÖÐvolatile±äÁ¿µÄͬ²½ÐԽϲµ«ÓÐʱËü¸ü¼òµ¥²¢ÇÒ¿ªÏú¸üµÍ£©£¬¶øÇÒÆäʹÓÃÒ²¸üÈÝÒ׳ö´í¡£ÔÚÕâÆÚµÄJavaÀíÂÛÓëʵ¼ùÖУ¬Brian Goetz½«½éÉܼ¸ÖÖÕýȷʹÓÃvolatile±äÁ¿µÄģʽ£¬²¢Õë¶ÔÆäÊÊÓÃÐÔÏÞÖÆÌá³öÒ» ......

Java³õѧÕ߶¼Ó¦¸Ã¸ã¶®µÄÁù¸öÎÊÌâ

¶ÔÓÚÕâ¸öϵÁÐÀïµÄÎÊÌ⣬ÿ¸öѧJavaµÄÈ˶¼Ó¦¸Ã¸ã¶®¡£µ±È»£¬Èç¹ûÖ»ÊÇѧJavaÍæÍæ¾ÍÎÞËùνÁË¡£Èç¹ûÄãÈÏΪ×Ô¼ºÒѾ­³¬Ô½³õѧÕßÁË£¬È´²»ºÜ¶®ÕâЩÎÊÌ⣬Ç뽫Äã×Ô¼ºÖعé³õѧÕßÐÐÁС£ÄÚÈݾùÀ´×ÔÓÚCSDNµÄ¾­µäÀÏÌù¡£
ÎÊÌâÒ»£ºÎÒÉùÃ÷ÁËʲô£¡
String s = "Hello world!";
¡¡Ðí¶àÈ˶¼×ö¹ýÕâÑùµÄÊÂÇ飬µ«ÊÇ£¬ÎÒÃǵ½µ×ÉùÃ÷ÁËʲô£¿»Ø´ðͨ ......

Eclipseµ÷ÊÔJava´úÂë

Debug͸ÊÓͼ
http://www.cnblogs.com/Jamesliang/archive/2010/01/09/1643188.html
      µ±µã»÷Debug°´Å¥Ê±£¬Eclipse»áÌáʾÄã½øÈë Debug͸ÊÓͼ¡£¿ÉÒÔÔÚÓÒÉÏ·½Expressions´°¿Úµã»÷Êó±êÓÒ¼üÔÚµ¯³ö²Ëµ¥ÖÐÑ¡Ôñ Add Watch Expression »òÕßµã»÷ÈçÏÂͼËùʾ°´Å¥Ôò»á³öÏÖ£¬Ìí¼Ó±í´ïʽ´°¿Ú¡£Äã¿ÉÒÔÊäÈëÄã ......

java swing


<!--
@page { size: 21cm 29.7cm; margin: 2cm }
P { margin-bottom: 0.21cm }
-->
     Swing
ÊÇÄ¿Ç°
Java
Öв»¿ÉȱÉٵĴ°¿Ú¹¤¾ß×飬ÊÇÓû§½¨Á¢Í¼Ðλ¯Óû§½çÃ棨
GUI
£©³ÌÐòµÄÇ¿´ó¹¤¾ß¡£
Java Swing
×é¼þ×Ô¶¯²úÉú¸÷ÖÖʼþÀ´ÏìÓ¦Óû§ÐÐΪ¡£Èçµ±Óû§µã»÷°´Å¥»òÑ¡Ôñ²Ëµ¥Ïî ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ