锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品和日本精品,亚洲理论片在线中文字幕,亚洲国产美女精品久久久久∴http://www.tkk7.com/youlq/category/20352.htmlzh-cnThu, 15 Mar 2007 03:53:25 GMTThu, 15 Mar 2007 03:53:25 GMT60[杞創]紱佹windows鑷姩鏇存柊鍚庤嚜鍔ㄩ噸鍚?/title><link>http://www.tkk7.com/youlq/archive/2006/09/15/prevent_windows_automatic_updates_reboot.html</link><dc:creator>涓槨愪笁紕?/dc:creator><author>涓槨愪笁紕?/author><pubDate>Fri, 15 Sep 2006 01:14:00 GMT</pubDate><guid>http://www.tkk7.com/youlq/archive/2006/09/15/prevent_windows_automatic_updates_reboot.html</guid><wfw:comment>http://www.tkk7.com/youlq/comments/69795.html</wfw:comment><comments>http://www.tkk7.com/youlq/archive/2006/09/15/prevent_windows_automatic_updates_reboot.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/youlq/comments/commentRss/69795.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/youlq/services/trackbacks/69795.html</trackback:ping><description><![CDATA[ <p>娉細windows鑷姩鏇存柊鍚庢瘡嬈¢兘浼氳嚜鍔ㄩ噸鍚紝鐪熺殑寰堝偦錛屾病浠涔堜笉鍔犱竴涓‘璁ら夐」鍛紵榪樺ソ錛岀湅鍒拌繖綃囨枃绔犮?br /><br /><br />鍘熸枃閾炬帴錛?a >Prevent Windows automatic updates reboot</a><br /><br /></p> <p>Another one of those reminder posts: How to prevent the reboot triggered by the Windows automatic update feature.</p> <ul> <li> <p>Disable automatic updates completely. Not recommended.</p> </li> <li> <p>Change the policy. Recommended.</p> <ol> <li> <p>Start - Run - gpedit.msc</p> </li> <li> <p>Local Group Policy - Computer Configuration - Administrative Templates - Windows - Components - Windows Updates</p> <p>If you do not see the last element, use the context menu on Administrative Templates to add a new template. Pick the wuau.adm template and close the dialogs. Windows Updates should now show up.</p> </li> <li> <p>Activatge "No auto-restart for scheduled Automatic Updates Installations" and/or use a different warning interval.</p> </li> </ol> </li> </ul> <p>On XP Home go to or create the following registry key/value <code>HKEY_LOCAL_MACHINE \Software\Policies \Microsoft\Windows \WindowsUpdate\AU\NoAutoRebootWithLoggedOnUsers (Dword)</code> and set it to either 0 (allow reboots) or 1 (disallow reboots).</p> <img src ="http://www.tkk7.com/youlq/aggbug/69795.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/youlq/" target="_blank">涓槨愪笁紕?/a> 2006-09-15 09:14 <a href="http://www.tkk7.com/youlq/archive/2006/09/15/prevent_windows_automatic_updates_reboot.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>[杞澆]Ajax based login using Acegi http://www.tkk7.com/youlq/archive/2006/08/23/65226.html涓槨愪笁紕?/dc:creator>涓槨愪笁紕?/author>Wed, 23 Aug 2006 03:00:00 GMThttp://www.tkk7.com/youlq/archive/2006/08/23/65226.htmlhttp://www.tkk7.com/youlq/comments/65226.htmlhttp://www.tkk7.com/youlq/archive/2006/08/23/65226.html#Feedback0http://www.tkk7.com/youlq/comments/commentRss/65226.htmlhttp://www.tkk7.com/youlq/services/trackbacks/65226.html
http://www.jroller.com/page/sjivan?entry=ajax_based_login_using_aceci

Ajax based login using Acegi

Acegi is an extremely powerful Spring module for Authentication and Authorization and has almost become a defacto for web based applications built using Spring. Ajax based applications are getting hotter by the day and having a nice inplace Ajax based login page can improve coolness of your app and make it more Web 2.0'ish.

However implementing an Ajax-Acegi based login does require a little extra work because based on the J2EE spec, when a user tries to login, they are redirected back to the login page if the credentials are invalid or redirected to the success page on successful authentication.



]]>
瑙e喅 Hibernate Annotation 鐨?"no persistent classes found for query class" 闂http://www.tkk7.com/youlq/archive/2006/06/30/55892.html涓槨愪笁紕?/dc:creator>涓槨愪笁紕?/author>Fri, 30 Jun 2006 03:04:00 GMThttp://www.tkk7.com/youlq/archive/2006/06/30/55892.htmlhttp://www.tkk7.com/youlq/comments/55892.htmlhttp://www.tkk7.com/youlq/archive/2006/06/30/55892.html#Feedback0http://www.tkk7.com/youlq/comments/commentRss/55892.htmlhttp://www.tkk7.com/youlq/services/trackbacks/55892.htmlhibernate-3.2.0.cr2
hibernate-annotations-3.2.0.CR1

IDE:
idea 5.1

浠ュ墠閮芥槸鐢╔Doclet鏉ュ疄鐜扮被浼糀nnotation鐨勫姛鑳?浣嗘槸xdoclet鐨勭増鏈洿鏂板疄鍦ㄥお鎱?姘歌繙璺熶笉涓奾ibernate鐨勬洿鏂伴熷害,瀵艱嚧寰堝hibernate鏂扮殑鍔熻兘xdoclet閮芥病鍔炴硶鏀寔.榪樺ソ,jdk5.0鏈変簡Annotation,鑰屼笖hibernate涔熷紑濮嬫敮鎸丄nnotation浜?

鍘熸潵浠ヤ負浠巟doclet杞埌Annotation寰堢畝鍗?娌℃兂鍒拌繕鏄亣鍒頒簡闂,鍏堢湅浠g爜:

聽1package聽test;
聽2
聽3import聽org.hibernate.annotations.Entity;
聽4
聽5import聽javax.persistence.Id;
聽6import聽java.io.Serializable;
聽7
聽8@Entity
聽9publicclass聽Flight聽implements聽Serializable{
10聽聽Long聽id;
11聽聽String聽name;
12
13聽聽@Id
14聽聽public聽Long聽getId(){
15聽聽聽聽return聽id;
16聽聽}

17
18聽聽publicvoid聽setId(Long聽id){
19聽聽聽聽this.id=id;
20聽聽}

21
22聽聽public聽String聽getName(){
23聽聽聽聽return聽name;
24聽聽}

25
26聽聽publicvoid聽setName(String聽name){
27聽聽聽聽this.name=name;
28聽聽}

29
30聽聽publicboolean聽equals(Object聽o){
31聽聽聽聽if(this==o)聽returntrue;
32聽聽聽聽if(o==null||getClass()!=o.getClass())聽returnfalse;
33
34聽聽聽聽final聽Flight聽flight=(Flight)o;
35
36聽聽聽聽if(id!=null?!id.equals(flight.id):flight.id!=null)聽returnfalse;
37聽聽聽聽if(name!=null?!name.equals(flight.name):flight.name!=null)聽returnfalse;
38
39聽聽聽聽returntrue;
40聽聽}

41
42聽聽publicint聽hashCode(){
43聽聽聽聽int聽result;
44聽聽聽聽result=(id!=null?id.hashCode():0);
45聽聽聽聽result=29*result+(name!=null?name.hashCode():0);
46聽聽聽聽return聽result;
47聽聽}

48}

49


鐪嬩笂鍘繪病浠涔堥棶棰樺惂?娌℃兂鍒拌繍琛岀殑鏃跺欐牴鏈窇涓嶈搗鏉?鑰佹槸鎻愮ず:
聽聽聽聽聽[java]聽10:54:55,842聽聽INFO聽SessionFactoryObjectFactory:82-聽Not聽binding聽factory聽to聽JNDI,聽no聽JNDI聽name聽configured
聽聽聽聽聽[java]聽org.hibernate.hql.ast.QuerySyntaxException:聽Flight聽is聽not聽mapped聽[from聽Flight]
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:
180)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.taskdefs.Java.run(Java.java:
710)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:
178)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.taskdefs.Java.execute(Java.java:
84)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
275)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.Task.perform(Task.java:
364)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.Target.execute(Target.java:
341)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.Target.performTasks(Target.java:
369)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1216)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.Project.executeTarget(Project.java:
1185)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
40)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.Project.executeTargets(Project.java:
1068)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.Main.runBuild(Main.java:
668)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.Main.startAnt(Main.java:
187)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.launch.Launcher.run(Launcher.java:
246)
聽聽聽聽聽[java]聽聽聽聽聽at聽org.apache.tools.ant.launch.Launcher.main(Launcher.java:
67)

鐪嬩簡鍗婂ぉ鐪嬩笉鍑烘湁浠涔堥棶棰?鏈鍚庣粓浜庡弬鑰僪ibernate-annotations-3.2.0.CR1閲岄潰鍗曞厓嫻嬭瘯鐨勪唬鐮佹墠鍙戠幇鏄繖孌典唬鐮佹湁闂:

1import聽org.hibernate.annotations.Entity;
2
3import聽javax.persistence.Id;
4import聽java.io.Serializable;
5


瑕佹敼鎴?

1import聽javax.persistence.Id;
2import聽javax.persistence.Entity;
3import聽java.io.Serializable;


鍘熸潵鎴戠敤idea寮鍙戞椂,鍦ㄨ嚜鍔ㄥ畬鎴愮殑鏃跺欐兂褰撶劧鍦伴夌敤浜唎rg.hibernate.annotations鍖呬笅闈㈢殑annotation,鑰屽疄闄呬笂搴旇浣跨敤javax.persistence鍖呬笅闈㈢殑annotation.鎯蟲兂鐪嬩篃寰堟湁閬撶悊:榪欐牱涓鏉ユ垜浠殑JAVA bean灝變笉鐢╥mport hibernate鐨勫寘浜?鐢ㄧ殑閮芥槸鏍囧噯鐨刯ava鍖?

]]>
[鍘熷垱]浣跨敤Acegi鏃惰幏鍙栫敤鎴蜂俊鎭殑鍑犱釜鍑芥暟http://www.tkk7.com/youlq/archive/2006/03/03/33487.html涓槨愪笁紕?/dc:creator>涓槨愪笁紕?/author>Fri, 03 Mar 2006 08:17:00 GMThttp://www.tkk7.com/youlq/archive/2006/03/03/33487.htmlhttp://www.tkk7.com/youlq/comments/33487.htmlhttp://www.tkk7.com/youlq/archive/2006/03/03/33487.html#Feedback4http://www.tkk7.com/youlq/comments/commentRss/33487.htmlhttp://www.tkk7.com/youlq/services/trackbacks/33487.html
  /**
   * 鍙栧緱褰撳墠鐢ㄦ埛鍚?BR>   * 
@return
   
*/

  
public static String getUsername(){
    Context context
=ContextHolder.getContext();
    
if(context!=null){
      
if(context instanceof SecureContext){
        SecureContext sc
=(SecureContext)context;
        Authentication auth
=sc.getAuthentication();
        
if(auth!=null){
          Object principal
=auth.getPrincipal();
          
if(principal instanceof UserDetails) {
            
return ((UserDetails)principal).getUsername();
          }
else{
            
return principal.toString();
          }

        }

      }

    }

    
return null;
  }

  
/**
   * 鍙栧緱褰撳墠鐢ㄦ埛瀵嗙爜
   * 
@return
   
*/

  
public static String getPassword(){
    Context context
=ContextHolder.getContext();
    
if(context!=null){
      
if(context instanceof SecureContext){
        SecureContext sc
=(SecureContext)context;
        Authentication auth
=sc.getAuthentication();
        
if(auth!=null){
          Object principal
=auth.getPrincipal();
          
if(principal instanceof UserDetails) {
            
return ((UserDetails)principal).getPassword();
          }
else{
            
return null;
          }

        }

      }

    }

    
return null;
  }

  
/**
   * 鍙栧緱褰撳墠鐢ㄦ埛锝擄絽锝擄綋锝夛綇锝庛锝夛絼
   * 
@return sessionid or null
   
*/

  
public static String getSessionID(){
    Context context
=ContextHolder.getContext();
    
if(context!=null){
      
if(context instanceof SecureContext){
        SecureContext sc
=(SecureContext)context;
        Authentication auth
=sc.getAuthentication();
        
if(auth!=null){
          Object details
=auth.getDetails();
          
if(details instanceof WebAuthenticationDetails) {
            
return ((WebAuthenticationDetails)details).getSessionId();
          }
else{
            
return null;
          }

        }

      }

    }

    
return null;
  }



]]>
[杞澆]How to get (almost) 3 GB heap on Windows!http://www.tkk7.com/youlq/archive/2005/12/08/22956.html涓槨愪笁紕?/dc:creator>涓槨愪笁紕?/author>Thu, 08 Dec 2005 03:38:00 GMThttp://www.tkk7.com/youlq/archive/2005/12/08/22956.htmlhttp://www.tkk7.com/youlq/comments/22956.htmlhttp://www.tkk7.com/youlq/archive/2005/12/08/22956.html#Feedback0http://www.tkk7.com/youlq/comments/commentRss/22956.htmlhttp://www.tkk7.com/youlq/services/trackbacks/22956.html
鍘熸枃:http://dev2dev.bea.com/blog/hstahl/archive/2005/12/how_to_get_almo.html

]]>
主站蜘蛛池模板: 吃奶摸下高潮60分钟免费视频| 成人免费一区二区无码视频| 亚洲最大的成网4438| 美女视频黄的全免费视频| 免费播放在线日本感人片| 亚洲男人的天堂在线播放| 亚洲精品A在线观看| 岛国av无码免费无禁网站| 国产免费人成在线视频| 久久久久久久久久国产精品免费| 亚洲成AV人综合在线观看| 久久久久亚洲AV片无码| 国产亚洲精久久久久久无码77777| 最近免费中文字幕大全高清大全1| 亚洲色丰满少妇高潮18p| 亚洲日韩乱码中文无码蜜桃| 亚洲色大成网站www永久男同| 中文字幕 亚洲 有码 在线 | 一区二区三区免费高清视频| 亚洲xxxx18| 国产精品永久免费| 污污视频网站免费观看| 亚洲国产成人综合精品| 亚洲色欲色欲www在线播放| 人妻18毛片a级毛片免费看| 香蕉免费一级视频在线观看| 亚洲欧美日韩综合俺去了| 亚洲AV日韩AV天堂久久| 亚洲国产日韩视频观看| 亚洲精品天堂成人片AV在线播放 | 免费一级特黄特色大片| 五月天婷婷精品免费视频| 美女内射无套日韩免费播放| 免费成人福利视频| 9i9精品国产免费久久| 免费看污成人午夜网站| 青青青青青青久久久免费观看| 久久久久国产精品免费免费不卡 | 美女在线视频观看影院免费天天看| 黄色免费在线网址| 人成午夜免费大片在线观看|