81,077
社区成员




public static ComoPooledDataSource cpds ;
static{
cpds = new ComoPooledDataSource();
}
或者用工厂方法也OK :
public static ComoPooledDataSource cpds ;
pubblic static ComoPooledDataSource getCpds(){
if(null==cpds){
cpds = new ComoPooledDataSource();
}
return cpds;
}