diff --git a/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/App.java b/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/QiniuDemo.java similarity index 96% rename from zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/App.java rename to zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/QiniuDemo.java index ba366f94..818bde87 100644 --- a/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/App.java +++ b/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/QiniuDemo.java @@ -10,7 +10,7 @@ import java.io.IOException; /** * Created by shuzheng on 2016/11/12. */ -public class App { +public class QiniuDemo { //设置好账号的ACCESS_KEY和SECRET_KEY String ACCESS_KEY = ""; String SECRET_KEY = ""; @@ -50,6 +50,6 @@ public class App { } } public static void main(String[] args) throws IOException { - new App().upload(); + new QiniuDemo().upload(); } } diff --git a/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/service/OssService.java b/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/service/OssService.java new file mode 100644 index 00000000..9d05c366 --- /dev/null +++ b/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/service/OssService.java @@ -0,0 +1,8 @@ +package com.zheng.oss.sdk.service; + +/** + * 阿里云OSS操作接口 + * Created by shuzheng on 2017/4/11. + */ +public interface OssService { +} diff --git a/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/service/QiniuService.java b/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/service/QiniuService.java new file mode 100644 index 00000000..5d66e05e --- /dev/null +++ b/zheng-oss/zheng-oss-sdk/src/main/java/com/zheng/oss/sdk/service/QiniuService.java @@ -0,0 +1,8 @@ +package com.zheng.oss.sdk.service; + +/** + * 七牛云存储操作接口 + * Created by shuzheng on 2017/4/11. + */ +public interface QiniuService { +} diff --git a/zheng-oss/zheng-oss-web/pom.xml b/zheng-oss/zheng-oss-web/pom.xml index 9165844c..2e60fc73 100644 --- a/zheng-oss/zheng-oss-web/pom.xml +++ b/zheng-oss/zheng-oss-web/pom.xml @@ -34,18 +34,13 @@ jstl 1.2 - + com.zheng zheng-oss-sdk 1.0.0 jar - - org.mortbay.jetty - jetty-maven-plugin - 8.1.16.v20140903 - @@ -88,11 +83,12 @@ org.eclipse.jetty jetty-maven-plugin - 9.0.0.v20130308 + + 9.2.7.v20150116 3 - /zheng-oss-web + / 7771 diff --git a/zheng-oss/zheng-oss-web/src/main/resources/profiles/dev.properties b/zheng-oss/zheng-oss-web/src/main/resources/profiles/dev.properties index baede636..e07eacfc 100644 --- a/zheng-oss/zheng-oss-web/src/main/resources/profiles/dev.properties +++ b/zheng-oss/zheng-oss-web/src/main/resources/profiles/dev.properties @@ -1 +1,5 @@ -profile.env=dev \ No newline at end of file +profile.env=dev + +### aliyun ### +aliyun.oss.endpoint= +aliyun.oss.endpoint.internal=