原创 POI - generate xls file

Official web site https://poi.apache.org/spreadsheet/index.html Sample codes with HSSF import org.apache.poi.hssf.us

原创 模塊化web應用中不同Context的相互調用

摘要:大型的web應用,採用模塊化設計可以使得多個team同時開發;每個模塊可以完全獨立的使用資源(比如,連接到不同的數據庫,實現分庫分表)。 下圖示例中,是一個簡化的銀行櫃員系統。其中的四個模塊所需要的用戶數據不盡相同;比如客戶關係模塊

原创 Spring notes

獲取spring源碼 a) 安裝git,參考https://github.com/spring-projects/spring-framework相關說明下載 b) 從上述網站獲取zip包,此步驟最爲簡便

原创 Mybatis源碼分析(一)

MyBatis Version: 3.3.1 OS: Windows Editor: Eclipse 研究方法:下載Mybatis source, 編寫測試用例,關聯source,然後分析代碼流程。 Mybatis採用JDK動態代理+

原创 remove javascript validation from eclipse project

本文轉自 http://stackoverflow.com/questions/3131878/how-do-i-remove-javascript-validation-from-my-eclipse-project Right-c

原创 JSF notes

Below are some notes for developing a web application using JSF2. 1- @ManagedBean(name="somename") - annotation to reg

原创 學習網站 - URLs

前端學習網站 http://www.w3schools.com/ Android開發工具下載 http://www.androiddevtools.cn/ Google Android官網 https://developer.an

原创 Spring issue checking links

http://jinnianshilongnian.iteye.com/blog/1894465 

原创 Java multi-threads to read DB then writting to local disk with Producer & Consumer model

There will be several Producers to access DB and put results into list; only one Consumer accesses that list to write

原创 CXF Webservice nonSpring

不使用Spring的情況下創建CXF Webservice。 需要通過繼承CXFNonSpringServlet來發布service。 需要的jar asm-3.3.1.jar asm-attrs-2.2.3.jar cxf-a

原创 JavaScript OOP

There are several ways to implement OOP and inheritance. I checked a lot and choose below one which is simple to progra

原创 servlet中無法直接autowired bean from Spring

本文引自 - http://my.oschina.net/u/937710/blog/115919 如果servlet中需要用到spring中的applicationContext,我們是沒法直接通過@Autowired方式獲取的,需要

原创 Ajax - CORS - Cross Origin Resource Sharing

Below Issue only happens while trying to access some resources which are existing in a different origin Issue Descript

原创 Tomcat啓動過程源碼研究

Tomcat Version: 7.0.42.0 OS: Windows Editor: Eclipse 下載tomcat source並編譯,從startup.bat開始閱讀。 這裏不貼出具體的代碼了,附上一副時序圖。 如下圖所

原创 Object sharing for Runnable vs. extends Thread

This article is not about to talk the difference between implement Runnable interface and extends Thread class, but to