環境:資料庫sql server2005,jdk1.6 ,IDE myeclipse,連結工具:net.sourceforge.jtds.jdbc.Driver問題: 在java中使用java.sql.CallableStatment調用預存程序處理時,一直出現如下的問題:報錯:java.sql.SQLException: Output parameters have not yet been processed. Call getMoreResults().
一般我們項目jar包,會使用java內建的jar程式,或者使用IDE如eclipse build.xml,或者ant打包。有一些情況需要動態封裝,如根據用戶端的請求,把特有的資訊或適配打包到jar中,下面是我寫的讀寫的例子程式,沒有添加異常處理和多線程,這個基本和業務相關。代碼如下:讀JarCode highlighting produced by Actipro CodeHighlighter
In Spring, the inheritance is supported in bean configuration for a bean to share common values, properties or configurations.A child bean or inherited bean can inherit its parent bean configurations, properties and some attributes. In additional,
比如我們有下面的一個bean:import java.util.Date; public class Customer { Date date; public Date getDate() {return date;} public void setDate(Date date) {this.date = date;} @Overridepublic String toString() {return "Customer [date=" + date + "]";}
Spring支援4種依賴檢查:預設的是nonenone – No dependency checking.simple – If any properties of primitive type (int, long,double…) and collection types (map, list..) have not been set, UnsatisfiedDependencyException will be thrown.objects – If any properties of
InitializingBean 和 DisposableBeaninit-method 和 destroy-method@PostConstruct 和 @PreDestroyIn Spring, InitializingBean and DisposableBean are two marker interfaces, a useful way for Spring to perform certain actions upon bean initialization and