OSS统一上传接口配置

This commit is contained in:
ChenLingBaby 2017-06-03 12:25:44 +08:00
parent f0ef10a448
commit 110c355268
4 changed files with 3 additions and 28 deletions

View File

@ -1,10 +1,2 @@
### aliyun oss ###
aliyun.oss.endpoint=oss-cn-shanghai.aliyuncs.com
aliyun.oss.endpoint.internal=oss-cn-shanghai-internal.aliyuncs.com
aliyun.oss.accessKeyId=
aliyun.oss.accessKeySecret=
aliyun.oss.bucketName=shuzheng
aliyun.oss.policy.expire=300
aliyun.oss.maxSize=10
aliyun.oss.callback=http://shuzheng.tunnel.qydev.com/aliyun/oss/callback
### aliyun ###
aliyun.oss.policy=http://oss.zhangshuzheng.cn:7771/aliyun/oss/policy

View File

@ -74,7 +74,6 @@ public class DemoController extends BaseController {
JSONObject policy = aliyunOssService.policy();
_log.info("policy={}", policy);
model.addAttribute("policy", policy);
model.addAttribute("policy", policy);
return thymeleaf("/aliyun/upload");
}

View File

@ -1,10 +1,2 @@
### aliyun oss ###
aliyun.oss.endpoint=oss-cn-shanghai.aliyuncs.com
aliyun.oss.endpoint.internal=oss-cn-shanghai-internal.aliyuncs.com
aliyun.oss.accessKeyId=
aliyun.oss.accessKeySecret=
aliyun.oss.bucketName=shuzheng
aliyun.oss.policy.expire=300
aliyun.oss.maxSize=10
aliyun.oss.callback=http://shuzheng.tunnel.qydev.com/aliyun/oss/callback
### aliyun ###
aliyun.oss.policy=http://oss.zhangshuzheng.cn:7771/aliyun/oss/policy

View File

@ -1,10 +1,2 @@
### aliyun oss ###
aliyun.oss.endpoint=oss-cn-shanghai.aliyuncs.com
aliyun.oss.endpoint.internal=oss-cn-shanghai-internal.aliyuncs.com
aliyun.oss.accessKeyId=
aliyun.oss.accessKeySecret=
aliyun.oss.bucketName=shuzheng
aliyun.oss.policy.expire=300
aliyun.oss.maxSize=10
aliyun.oss.callback=http://shuzheng.tunnel.qydev.com/aliyun/oss/callback
### aliyun ###
aliyun.oss.policy=http://oss.zhangshuzheng.cn:7771/aliyun/oss/policy