增加生产环境配置

This commit is contained in:
xiongxiaoyang
2021-01-19 18:53:47 +08:00
parent 755300db3c
commit 20469bd669
11 changed files with 146 additions and 62 deletions

View File

@ -1,3 +1,10 @@
spring:
profiles:
include: [common-dev]
profiles:
include: [common-dev]
pic:
save:
type: 1 #图片保存方式, 1不保存使用爬取的网络图片 2保存在自己的存储介质
storage: local #存储介质local本地OSS阿里云对象存储fastDfs分布式文件系统
path: /var/pic #图片保存路径

View File

@ -0,0 +1,21 @@
spring:
profiles:
include: [common-prod]
#thymeleaf模版路径配置
thymeleaf:
prefix: file:${user.dir}/templates/${templates.name}/html/
suffix: .html
#模版配置
templates:
name: orange
pic:
save:
type: 2 #图片保存方式, 1不保存使用爬取的网络图片 2保存在自己的存储介质
storage: local #存储介质local本地OSS阿里云对象存储fastDfs分布式文件系统
path: /var/pic #图片保存路径

View File

@ -1,3 +0,0 @@
spring:
profiles:
include: [common-test]

View File

@ -25,10 +25,7 @@ spring:
jest:
uris: http://192.168.0.105:9200
#thymeleaf模版路径配置
thymeleaf:
prefix: file:${user.dir}/templates/${templates.name}/html/
suffix: .html
#静态文件路径配置
resources:
static-locations: file:${user.dir}/templates/${templates.name}/static/
@ -76,9 +73,7 @@ book:
#模版配置
templates:
name: orange