原创 Spring Security 3.x 完整入門教程(轉)

Spring Security 3.x 出來一段時間了,跟Acegi是大不同了,與2.x的版本也有一些小小的區別,網上有一些文檔,也有人翻譯Spri

原创 SpringSecurity3.0.5的配置文件及相關類

001 <?xml version="1.0" encoding="UTF-8"?> 002 <beans xmlns="http://www.springframework.org/schema/beans" 003      

原创 mysql中替換某個字段中的某一些內容 .

直接上sql語句: UPDATE `t_send_mail_success` SET `MailContent` = replace( `MailContent` , "", "a" ) WHERE `MailContent

原创 java:遞歸取出List中的元素

方法一: .................... String hql = "select t.fsHostip, t.fiReserve1 from Thostip as t where 1 = 1";    List ls = da

原创 Android菜鳥如何學習Android系統開發?(

如何做好Android學習前的準備?   如果你已經確定了學習Android的目標,那麼,應該提前做好哪些工作、先打下哪些基礎呢? 首先,你最好先熟悉一門編程語言,現在大學裏面和計算機相關的專業甚至理工類專業一般都會開設C語言課程,只是很

原创 爲什麼要在web.xml裏面配置延時加載

filter是在web.xml中配的,跟spring沒關係,你說的延遲加載時hibernate的吧 <filter> <filter-name>openSession</filter-name> <filter-class>org.spr

原创 myeclipse中java文件頭註釋格式設置

windows->preferences->java->Code Templates->comments->Type->edit Eclipse註釋規範模版總結 新建類文件 /**  * @ClassName:     ${file_

原创 js--積累:頁面刷新 每5秒鐘刷新一次頁面

<!-- 每5秒鐘刷新一次頁面 -->     <script>setTimeout("location=location; ", 5000); </script>   js 中實現延遲操作       setTimeout(functi

原创 mysql函數快速查找

一、數學函數 ABS(x)                    返回x的絕對值 BIN(x)          返回x的二進制(OCT返回八進制,HEX返回十六進制) CEILING(x)                返回大於x的最小

原创 圖片驗證碼

原理:服務器生成一個包含隨機的字符串的圖片發給客戶端,客戶端提交數據時需要填寫字符串作爲驗證,由於字符串保存在圖片中,因此機器很難識別。  public static final char[] CHARS = {'2','3','4','

原创 jsp實現返回上一頁

<input type='button' name='btn' value='返回上一頁' οnclick='history.go(-1)' cla

原创 1.android:整理出15個Android很有用的代碼片段(技巧)

1:查看是否有存儲卡插入String status=Environment.getExternalStorageState(); if(status.equals(Enviroment.MEDIA_MOUNTED)) {    說明有SD

原创 Spring Security 3 基於角色訪問控制過程詳解 .

訪問控制: 由於我們配置了訪問控制(授權)的默認攔截器org.springframework.security.web.access.intercept.FilterSecurityInterceptor。其主要業務方法是Intercep

原创 Spring Security-授權(AccessDecisionManager,AccessDecisionVoter) .

AccessDecisionManager完成授權的功能。觀察AccessDecisionManager接口的授權方法 void decide(Au

原创 用JS實現顯示當前時間(實時變化)

首先在<head>之間加上JS方法:     <script language="javascript" type="text/Javascript">          setInterval("timer.innerHTML=new