Skip to content

Commit 8cbb1c3

Browse files
committed
新增spring boot profile多文件支持
1 parent 2bbf010 commit 8cbb1c3

File tree

4 files changed

+30
-13
lines changed

4 files changed

+30
-13
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#=============================================#spring Redisson配置#===================================#
2+
spring.redisson.address = 192.168.1.204:6379
3+
##资源映射路径(因为jar方式运行的原因)
4+
file.dir = C:\\Users\\yudian\\Desktop\\dev\\
5+
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
6+
## openoffice相关配置
7+
office.home = C:\\Program Files (x86)\\OpenOffice 4
8+
server.tomcat.uri-encoding = UTF-8
9+
converted.file.charset = GBK
10+
#======================================#文件上传限制#======================================#
11+
spring.http.multipart.max-file-size=100MB
12+
## 支持的类文本格式的文件类型
13+
simText = txt,html,xml,java,properties,mp3,mp4,sql

jodconverter-web/src/main/resources/application-prod.properties

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#=============================================#spring Redisson配置#===================================#
2+
spring.redisson.address = 192.168.1.204:6379
3+
spring.redisson.database = 3
4+
##资源映射路径(因为jar方式运行的原因)
5+
file.dir = /data/filepreview/
6+
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
7+
## openoffice相关配置
8+
openOfficePath = 123
9+
office.home = /opt/openoffice4
10+
server.tomcat.uri-encoding = utf-8
11+
converted.file.charset = utf-8
12+
spring.http.multipart.max-file-size = 100MB
13+
## 支持的类文本格式的文件类型
14+
simText = txt,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,log,htm,mp3,mp4,css,cnf

jodconverter-web/src/main/resources/application.properties

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ spring.freemarker.expose-request-attributes = true
1010
spring.freemarker.expose-session-attributes = true
1111
spring.freemarker.request-context-attribute = request
1212
spring.freemarker.suffix = .ftl
13-
#=============================================#spring Redisson配置#===================================#
14-
spring.redisson.address = 192.168.1.204:6379
15-
##资源映射路径(因为jar方式运行的原因)
16-
file.dir = C:\\Users\\yudian\\Desktop\\dev\\
17-
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
18-
## openoffice相关配置
19-
office.home = C:\\Program Files (x86)\\OpenOffice 4
20-
server.tomcat.uri-encoding = UTF-8
21-
converted.file.charset = GBK
22-
#======================================#文件上传限制#======================================#
23-
spring.http.multipart.max-file-size=100MB
24-
## 支持的类文本格式的文件类型
25-
simText = txt,html,xml,java,properties,mp3,mp4,sql
13+
14+
#默认环境
15+
spring.profiles.active=dev

0 commit comments

Comments
 (0)