原创 Hibernate和ibatis在同一個webapp中混合使用在spring中的配置方法

實際的項目開發中,如果只用hibernate,經常會遇到很多實現複雜的sql和map方法,這時候如果用ibatis卻很簡單,所以我們需要在一個項目中hibernate和ibatis並存,配置方法如下就可以實現來自:javaresource.

原创 data:url website

http://dataurl.net/#dataurlmakerYour one-stop HTML5 spot for all things Data URL ✸

原创 我的友情鏈接

51CTO博客開發mkYong的java社區poijava 資源連接李剛java 的博客extjs紫晶幻治

原创 JAXB

其實Marshal 和 UnMarshal的過程並不複雜,只需要從JAXBContext中獲得Marshaller或Unmarshaller對象,就可以讓JAXB幫我們來進行轉換了。我們需要操作的主要內容是定義一個規則,告訴JAXB如何將一

原创 html5 multy file upload

http://stackoverflow.com/questions/7124269/uploading-multiple-p_w_picpaths-to-gae-blobstore-using-html5-multiple-file-in

原创 pivot

CREATETABLE test1([month] varchar(15), val1 int)INSERTINTO test1VALUES('Jan',70),('Feb',12),('Mar',12),('Apr',14);SELECT

原创 Spring Test 整合 JUnit 4 使用總結

這兩天做Web開發,發現通過Spring進行對象管理之後,做測試變得複雜了。因爲所有的Bean都需要在applicationContext.xml中加載好,之後再通過@Resource去取得。如果每次都要整個業務流做的差不多了再去測試,這樣

原创 Java 8十個lambda表達式案例

Java 8十個lambda表達式案例  1. 實現Runnable線程案例使用() -> {} 替代匿名類://Before Java 8:new Thread(new Runnable() {    @Override     publ

原创 Predicate和Consumer接口– Java 8中java.util.function包下的接口

Predicate和Consumer接口– Java 8中java.util.function包下的接口public static Student updateStudentFee(Student student, Predicate<St

原创 Java 8十個lambda表達式案例

Java 8十個lambda表達式案例  1. 實現Runnable線程案例使用() -> {} 替代匿名類://Before Java 8:new Thread(new Runnable() {    @Override     publ

原创 Convert SVG to PDF by using iText in Java(ZT)

http://www.cnblogs.com/hardrock/archive/2006/08/09/472143.html As promised here is a very simple PDF that contains a SVG

原创 Vector graphics in iText PDF

http://stackoverflow.com/questions/408042/vector-graphics-in-itext-pdf 3down voteI found a couple of examples by the iTe

原创 python cgi 程序demo

http://www.yiibai.com/python/python_cgi_programming.html什麼是CGI ?公共網關接口或CGI,Web服務器和一個自定義的腳本之間交換信息是是一組定義的標準..CGI規範在由NCSA和N

原创 JAXB

其實Marshal 和 UnMarshal的過程並不複雜,只需要從JAXBContext中獲得Marshaller或Unmarshaller對象,就可以讓JAXB幫我們來進行轉換了。我們需要操作的主要內容是定義一個規則,告訴JAXB如何將一

原创 sqllite java 下載地址

https://bitbucket.org/xerial/sqlite-jdbc/overviewmportjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.Re