import java.io.File;
import java.net.URL;
import java.util.Date;
import com.aliyun.oss.ClientConfiguration;
import com.aliyun.oss.HttpMethod;
import com.aliyun.oss.OSSClient;
import com.aliyun.oss.model.GeneratePresignedUrlRequest;
import com.aliyun.oss.model.OSSObjectSummary;
import com.aliyun.oss.model.ObjectListing;
import com.aliyun.oss.model.ObjectMetadata;
import java.net.URL;
import java.util.Date;
import com.aliyun.oss.ClientConfiguration;
import com.aliyun.oss.HttpMethod;
import com.aliyun.oss.OSSClient;
import com.aliyun.oss.model.GeneratePresignedUrlRequest;
import com.aliyun.oss.model.OSSObjectSummary;
import com.aliyun.oss.model.ObjectListing;
import com.aliyun.oss.model.ObjectMetadata;
import com.aliyun.oss.model.PutObjectResult;
/**
* OSS方法测试类
* @author ZD
*
*/
public class OssTest {
//创建OSS客户端
private static OSSClient client;
//设置连接
private static String bucket_name = " your bucketName ";
private static String endpoint = " you endpoint ";
private static String accessKeyId = " you accessKeyId ";
private static String accessKeySecret = " you accessKeySecret ";
/**
* 配置Conf连接属性
* @return conf
*/
public ClientConfiguration conf() {
// 创建ClientConfiguration实例
ClientConfiguration conf = new ClientConfiguration();