原创 Sprint JPA Test
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration public class TestUserService { @Configuration @Compone
原创 MySql 分區
dev.mysql.com/doc/refman/5.6/en/partitioning-types.html SELECT PLUGIN_NAME AS NAME, PLUGIN_VERSION A
原创 Java 代碼塊加載順序
靜態代碼塊 > 構造代碼塊 > 構造方法 public class A { //靜態代碼塊-類加載時加載且只加載一次 static { System.out.println("1"); } //構造
原创 發現一個電子書網站收藏先
發現一個電子書網站收藏先 http://book.hsoso.com
原创 JGroups 廣播檢查
先下載JGroup jar包 設置到環境變量CLASSPATH Server1: java org.jgroups.tests.McastSenderTest -mcast_addr 239.190.1.95 -port 32986
原创 Common log4j Console output when unit testing
#set up stdout appenderlog4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.lo
原创 WARNING: JMockit was initialized on demand, which may cause certain tests to fai
When we using Jmokit and Junit, it will show following warning when runing test cases in Eclipse: WARNING: JMockit w
原创 從 Java 代碼到 Java 堆 理解和優化您的應用程序的內存使用
從 Java 代碼到 Java 堆 理解和優化您的應用程序的內存使用 https://www.ibm.com/developerworks/cn/java/j-codetoheap/ 優化應用程序代碼的內存使用並不是一個新主題,
原创 Oracle存儲過程中如何正確使用行鎖
Oracle存儲過程中如何正確使用行鎖 http://database.51cto.com/art/201004/196669.htm 以下的文章主要是講述Oracle 存儲過程中如何正確的使用行鎖的實際示例,如果一張入庫單表中的相
原创 (轉)一步步優化JVM4:決定Java堆的大小以及內存佔用
一步步優化JVM4:決定Java堆的大小以及內存佔用 http://www.myexception.cn/program/564386.html 一步步優化JVM四:決定Java堆的大小以及內存佔用 到目前爲止,還沒有做明確的優
原创 讓開發自動化: 用 Eclipse 插件提高代碼質量
讓開發自動化: 用 Eclipse 插件提高代碼質量 http://www.ibm.com/developerworks/cn/java/j-ap01117/ 開發軟件時,我的主要目標之一是:要麼防止將缺陷引入代碼庫,要麼限制缺陷的
原创 (轉)8個優秀的jQuery Mobile教程
8個優秀的jQuery Mobile教程 http://mobile.51cto.com/hot-277261.htm AppLaud: http://www.mobiledevelopersolutions.com/home/
原创 六頂思考帽
Link: 原文地址 什麼是六頂思考帽? 六頂思考帽是英國學者愛德華·德·波諾 (Edward de Bono ) 博士開發的一種思維訓練模式,或者說是一個全面思考問題的模型。它提供了“平行思維”的工具,避免將時間浪費在互相爭
原创 (Easy to go with CSS)
20個不錯的CSS頁面佈局相關資源推薦 http://sd.csdn.net/a/20110623/300399.html http://designm.ag/tutorials/jquery-display-switch/ ht
原创 Select Count (*)和Select Count(1)以及Select Count(column)區別
1. 一般情況下,Select Count (*)和Select Count(1)兩者的返回結果是一樣的 2. 假如表沒有主鍵(PK), 那麼count(1)比count(*)快, 如果有主鍵PK的話,那count(主鍵