原创 there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

創建表的時候報錯[Err] 1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAUL

原创 我的友情鏈接

51CTO博客開發

原创 淺析Servlet的url-pattern

       做了2年多的J2EE開發,今天在看博客的時候看到這句話“如果你還不知道 web.xml 中一個請求和一個 servlet 是如何匹配到一起的,那麼請搜索一下 servlet 的文檔。這可不是亂說呀,有很多人就認爲 /xyz/

原创 我的友情鏈接

51CTO博客開發

原创 spring mvc 下 word 文檔(含圖片)導出

最近在處理 word 文檔導出工作,整理並總結下。經過一番百度和親測,大部分人使用的都是iText,iReport等...當我去嘗試用這幾種方法的時候,要實現我的需求可以,但是代碼量太大了~~~因爲我的 word 文檔結構比較複雜,內容較多

原创 Read Notes:[Effective Java] Enforce the singleton with a private constructor or an enum type

// Singleton with public final field public class Elvis {     public static final Elvis INSTANCE = new Elvis();     priv

原创 there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause

創建表的時候報錯[Err] 1293 - Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAUL

原创 Read Notes:[Effective Java] Consider static factory methods instead of Constructors

Providing a static method instead of a public constructor has both advantages and disadvantages.One advantage of static

原创 Read Notes:[Effective Java] Consider a builder when faced with many constructor parameters

The Telescoping Constructor pattern works, but it is hard to write client code when there are many parameters, and harde

原创 linux ssh 報錯 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

linux ssh 到另外一個機器時報錯root@kinken:/home/kinken# ssh [email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

原创 數據庫視圖優缺點分析

視圖作用是什麼 所謂視圖(View)其實是執行查詢語句後得到的結果,但這個查詢結果可以仿真成數據表來使用,所以有人也稱它爲“虛擬數據表”,視圖在操作上和數據表沒有什麼區別,但兩者的差異是其本質是不同的:數據表是實際存儲記錄的地方,然而視圖並