更新oss

This commit is contained in:
shuzheng 2017-04-13 22:21:48 +08:00
parent fc8ed398fa
commit 7e5d13239b
5 changed files with 27 additions and 11 deletions

View File

@ -10,7 +10,7 @@ import java.io.IOException;
/** /**
* Created by shuzheng on 2016/11/12. * Created by shuzheng on 2016/11/12.
*/ */
public class App { public class QiniuDemo {
//设置好账号的ACCESS_KEY和SECRET_KEY //设置好账号的ACCESS_KEY和SECRET_KEY
String ACCESS_KEY = ""; String ACCESS_KEY = "";
String SECRET_KEY = ""; String SECRET_KEY = "";
@ -50,6 +50,6 @@ public class App {
} }
} }
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
new App().upload(); new QiniuDemo().upload();
} }
} }

View File

@ -0,0 +1,8 @@
package com.zheng.oss.sdk.service;
/**
* 阿里云OSS操作接口
* Created by shuzheng on 2017/4/11.
*/
public interface OssService {
}

View File

@ -0,0 +1,8 @@
package com.zheng.oss.sdk.service;
/**
* 七牛云存储操作接口
* Created by shuzheng on 2017/4/11.
*/
public interface QiniuService {
}

View File

@ -34,18 +34,13 @@
<artifactId>jstl</artifactId> <artifactId>jstl</artifactId>
<version>1.2</version> <version>1.2</version>
</dependency> </dependency>
<!-- service --> <!-- sdk -->
<dependency> <dependency>
<groupId>com.zheng</groupId> <groupId>com.zheng</groupId>
<artifactId>zheng-oss-sdk</artifactId> <artifactId>zheng-oss-sdk</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.16.v20140903</version>
</dependency>
</dependencies> </dependencies>
<profiles> <profiles>
@ -88,11 +83,12 @@
<plugin> <plugin>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId> <artifactId>jetty-maven-plugin</artifactId>
<version>9.0.0.v20130308</version> <!--<version>9.0.0.v20130308</version>-->
<version>9.2.7.v20150116</version>
<configuration> <configuration>
<scanIntervalSeconds>3</scanIntervalSeconds> <scanIntervalSeconds>3</scanIntervalSeconds>
<webApp> <webApp>
<contextPath>/zheng-oss-web</contextPath> <contextPath>/</contextPath>
</webApp> </webApp>
<httpConnector> <httpConnector>
<port>7771</port> <port>7771</port>

View File

@ -1 +1,5 @@
profile.env=dev profile.env=dev
### aliyun ###
aliyun.oss.endpoint=
aliyun.oss.endpoint.internal=