81,115
社区成员
发帖
与我相关
我的任务
分享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;
}