新增spring boot profile多文件支持
This commit is contained in:
@ -0,0 +1,13 @@
|
|||||||
|
#=============================================#spring Redisson<6F><6E><EFBFBD><EFBFBD>#===================================#
|
||||||
|
spring.redisson.address = 192.168.1.204:6379
|
||||||
|
##<23><>Դӳ<D4B4><D3B3>·<EFBFBD><C2B7>(<28><>Ϊjar<61><72>ʽ<EFBFBD><CABD><EFBFBD>е<EFBFBD>ԭ<EFBFBD><D4AD>)
|
||||||
|
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<63><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
office.home = C:\\Program Files (x86)\\OpenOffice 4
|
||||||
|
server.tomcat.uri-encoding = UTF-8
|
||||||
|
converted.file.charset = GBK
|
||||||
|
#======================================#<23>ļ<EFBFBD><C4BC>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD>#======================================#
|
||||||
|
spring.http.multipart.max-file-size=100MB
|
||||||
|
## ֧<>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
simText = txt,html,xml,java,properties,mp3,mp4,sql
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
#=============================================#spring Redisson<6F><6E><EFBFBD><EFBFBD>#===================================#
|
||||||
|
spring.redisson.address = 192.168.1.204:6379
|
||||||
|
spring.redisson.database = 3
|
||||||
|
##<23><>Դӳ<D4B4><D3B3>·<EFBFBD><C2B7>(<28><>Ϊjar<61><72>ʽ<EFBFBD><CABD><EFBFBD>е<EFBFBD>ԭ<EFBFBD><D4AD>)
|
||||||
|
file.dir = /data/filepreview/
|
||||||
|
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
|
||||||
|
## openoffice<63><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
openOfficePath = 123
|
||||||
|
office.home = /opt/openoffice4
|
||||||
|
server.tomcat.uri-encoding = utf-8
|
||||||
|
converted.file.charset = utf-8
|
||||||
|
spring.http.multipart.max-file-size = 100MB
|
||||||
|
## ֧<>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
simText = txt,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,log,htm,mp3,mp4,css,cnf
|
||||||
@ -10,16 +10,6 @@ spring.freemarker.expose-request-attributes = true
|
|||||||
spring.freemarker.expose-session-attributes = true
|
spring.freemarker.expose-session-attributes = true
|
||||||
spring.freemarker.request-context-attribute = request
|
spring.freemarker.request-context-attribute = request
|
||||||
spring.freemarker.suffix = .ftl
|
spring.freemarker.suffix = .ftl
|
||||||
#=============================================#spring Redisson配置#===================================#
|
|
||||||
spring.redisson.address = 192.168.1.204:6379
|
#默认环境
|
||||||
##资源映射路径(因为jar方式运行的原因)
|
spring.profiles.active=dev
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user