集成OSS对象存储

This commit is contained in:
xiongxiaoyang
2020-05-26 11:31:30 +08:00
parent 9975faed01
commit c62acc288e
16 changed files with 211 additions and 15 deletions

View 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访问地址

View File

@ -4,7 +4,7 @@ server:
spring:
profiles:
active: dev
include: alipay
include: alipay,oss
rabbitmq:

View File

@ -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>