Skip to content

Commit

Permalink
新增spring boot profile多文件支持
Browse files Browse the repository at this point in the history
  • Loading branch information
klboke committed Jan 2, 2018
1 parent 2bbf010 commit 8cbb1c3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
13 changes: 13 additions & 0 deletions jodconverter-web/src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#=============================================#spring Redisson配置#===================================#
spring.redisson.address = 192.168.1.204:6379
##资源映射路径(因为jar方式运行的原因)
file.dir = C:\\Users\\yudian\\Desktop\\dev\\
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
## openoffice相关配置
office.home = C:\\Program Files (x86)\\OpenOffice 4
server.tomcat.uri-encoding = UTF-8
converted.file.charset = GBK
#======================================#文件上传限制#======================================#
spring.http.multipart.max-file-size=100MB
## 支持的类文本格式的文件类型
simText = txt,html,xml,java,properties,mp3,mp4,sql
Empty file.
14 changes: 14 additions & 0 deletions jodconverter-web/src/main/resources/application-uat.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#=============================================#spring Redisson配置#===================================#
spring.redisson.address = 192.168.1.204:6379
spring.redisson.database = 3
##资源映射路径(因为jar方式运行的原因)
file.dir = /data/filepreview/
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
## openoffice相关配置
openOfficePath = 123
office.home = /opt/openoffice4
server.tomcat.uri-encoding = utf-8
converted.file.charset = utf-8
spring.http.multipart.max-file-size = 100MB
## 支持的类文本格式的文件类型
simText = txt,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,log,htm,mp3,mp4,css,cnf
16 changes: 3 additions & 13 deletions jodconverter-web/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ spring.freemarker.expose-request-attributes = true
spring.freemarker.expose-session-attributes = true
spring.freemarker.request-context-attribute = request
spring.freemarker.suffix = .ftl
#=============================================#spring Redisson配置#===================================#
spring.redisson.address = 192.168.1.204:6379
##资源映射路径(因为jar方式运行的原因)
file.dir = C:\\Users\\yudian\\Desktop\\dev\\
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
## openoffice相关配置
office.home = C:\\Program Files (x86)\\OpenOffice 4
server.tomcat.uri-encoding = UTF-8
converted.file.charset = GBK
#======================================#文件上传限制#======================================#
spring.http.multipart.max-file-size=100MB
## 支持的类文本格式的文件类型
simText = txt,html,xml,java,properties,mp3,mp4,sql

#默认环境
spring.profiles.active=dev

0 comments on commit 8cbb1c3

Please sign in to comment.