原创 filter和spring aop,interceptor區別
filter和spring aop,interceptor區別 filter filter是servlet的規範,如果我們查看filter接口,可以看到有三個方法init,destory和dofilter.其中dofilter就是
原创 oracle中sql對於表的操作
1、修改表名 rename old_name to new_name; 2、刪除表中所有數據,並釋放空間,但不刪除表。truncate table emp;不可以回滾恢復。 delete from emp;語句會將數
原创 多線程java懶加載問題
在多線程編程下,java懶加載初始化出現了一個這樣的問題,初始化java類時會出現多個實例。
原创 javascript筆記
jQuery input checked失效 $('input').attr('checked','true') $('input').prop('checked',true) 在火狐和chrome下使用attr方法對input進行che
原创 各種奇怪的javascript語法
函數前面加符號 +function //A方法 +function(){console.log('xx')}; //B方法 +function(){console.log('xx')}(); //c方法 function(){consol
原创 web開發問題
字符編碼 ajax中get和post傳參編碼不一致 ajax開發的時候使用get傳參後臺是亂碼,使用post是正常的 css radio文本對不齊 datepicker和modal關閉事件衝突 modal的hide.bs.mod
原创 myeclipse使用
1、myeclipse代碼提示快捷鍵設置 a、啓動MyEclipse 選擇菜單欄 Windows ->Preperences ->General ->keys b、 把word completion的快捷鍵設置al
原创 intellij將普通maven工程變成web工程
intellij idea版本爲2017.1.2 創建web目錄 在src/main下創建webapp/WEB-INF這兩個目錄 添加web模塊 打開file->project structrue->Facts,點擊+號,添加web。