mirror of
https://github.com/201206030/novel-plus.git
synced 2025-06-24 04:46:37 +00:00
集成OSS对象存储
This commit is contained in:
9
novel-front/src/main/resources/application-oss.yml
Normal file
9
novel-front/src/main/resources/application-oss.yml
Normal file
@ -0,0 +1,9 @@
|
||||
#OSS
|
||||
novel:
|
||||
file:
|
||||
endpoint: oss-cn-shenzhen.aliyuncs.com #不同的服务器,地址不同
|
||||
key-id: dhjjrue6767778878 #去OSS控制台获取
|
||||
key-secret: dssdkkrkelrkellk44554 #去OSS控制台获取
|
||||
bucket-name: novel #这个自己创建bucket时的命名,控制台创建也行,代码创建也行
|
||||
file-host: pic #文件路径
|
||||
web-url: https://xxyimg.oss-cn-hangzhou.aliyuncs.com #OSS文件的web访问地址
|
@ -4,7 +4,7 @@ server:
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
include: alipay
|
||||
include: alipay,oss
|
||||
|
||||
|
||||
rabbitmq:
|
||||
|
@ -56,6 +56,7 @@
|
||||
select
|
||||
id,pic_url from book
|
||||
where pic_url like 'http%'
|
||||
and pic_url not like concat('%',#{localPicPrefix},'%')
|
||||
limit #{limit}
|
||||
</select>
|
||||
|
||||
|
Reference in New Issue
Block a user