OSS 测试环境和生成环境隔离

This commit is contained in:
limqhz
2021-03-03 18:37:41 +08:00
parent f91ddb3b3f
commit 89d28d0a1c
7 changed files with 39 additions and 2 deletions

View File

@@ -18,3 +18,9 @@ spring:
jpa: jpa:
show-sql: true show-sql: true
sv:
file:
store:
image: imagetest/
video: videotest/

View File

@@ -11,3 +11,9 @@ spring:
# jpa: # jpa:
# show-sql: true # show-sql: true
sv:
file:
store:
image: image/
video: video/

View File

@@ -6,3 +6,9 @@ spring:
jpa: jpa:
show-sql: true show-sql: true
sv:
file:
store:
image: imagetest/
video: videotest/

View File

@@ -7,3 +7,9 @@ spring:
jpa: jpa:
show-sql: true show-sql: true
sv:
file:
store:
image: image/
video: video/

View File

@@ -14,3 +14,9 @@ spring:
jpa: jpa:
show-sql: true show-sql: true
sv:
file:
store:
image: imagetest/
video: videotest/

View File

@@ -11,3 +11,9 @@ spring:
jpa: jpa:
show-sql: true show-sql: true
sv:
file:
store:
image: image/
video: video/

View File

@@ -49,8 +49,9 @@ public class OSSClientUtil {
@Value("${oss.accessKeySecret}") @Value("${oss.accessKeySecret}")
private String accessKeySecret; private String accessKeySecret;
//文件存储目录 //文件存储目录
@Value("${sv.file.store.image}")
private String imageDir = "image/"; private String imageDir = "image/";
@Value("${sv.file.store.video}")
private String videoDir = "video/"; private String videoDir = "video/";
@Value("${oss.url}") @Value("${oss.url}")