原创 併發學習第一彈
1.關於併發 併發:並行的執行程序的多個部分。 併發能解決的問題大體上可以分爲“速度”(併發通常是提高運行在單處理器上的程序的性能)和“設計可管理性”兩種。 併發編程使我們可以將程序劃分爲多個分離的獨立運行的任務。 2.實戰 2.1線程可
原创 簡單工廠模式
以簡單的計算器實現爲例。 一、普通方法實現簡單計算器。 public static void main(String[] args) { Scanner scan = new Scanner(System.in); doubl
原创 Unable to locate appropriate constructor on class報錯原因以及解決方案
再使用HQL語句通過封裝查詢時,會添加一個虛擬的實體類 例如 select new com.musicworld.vo.ComUserSong(c.commentId,c.commentTime,c.content,c.userin
原创 Dispatcher initialization failed Unable to load configuration. - [unknown location]
用Struts2 寫東西時,剛開始就報這個錯 Dispatcher initialization failed Unable to load configuration. - [unknown location] 試了網上的很多方法
原创 The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
配置hibernate.cfg.xml時提示The content of element type "session-factory" must match "(property*,mapping*,(class-cache| coll
原创 org.hibernate.HibernateException: No CurrentSessionContext configured!
org.hibernate.HibernateException: No CurrentSessionContext configured!錯誤 解決方案: 在集成Hibernate的環境下(例如Jboss),要在hibernate.cf
原创 在myeclipse中啓動tomcat的時候會自動跳轉到DualStackPlainSocketImpl的debug頁面
在myeclipse中啓動tomcat的時候會自動跳轉到DualStackPlainSocketImpl的debug頁面 暫時只發現了兩種解決方法: 1,window->preference->run/debug->perspectiv