2019-04-11 14:45:22 +08:00
|
|
|
|
#######################################不可动态配置,需要重启生效#######################################
|
2019-04-08 18:26:01 +08:00
|
|
|
|
server.port = 8012
|
|
|
|
|
spring.http.encoding.charset = utf8
|
|
|
|
|
## Freemarker 配置
|
|
|
|
|
spring.freemarker.template-loader-path = classpath:/web/
|
|
|
|
|
spring.freemarker.cache = false
|
|
|
|
|
spring.freemarker.charset = UTF-8
|
|
|
|
|
spring.freemarker.check-template-location = true
|
|
|
|
|
spring.freemarker.content-type = text/html
|
|
|
|
|
spring.freemarker.expose-request-attributes = true
|
|
|
|
|
spring.freemarker.expose-session-attributes = true
|
|
|
|
|
spring.freemarker.request-context-attribute = request
|
|
|
|
|
spring.freemarker.suffix = .ftl
|
|
|
|
|
|
|
|
|
|
##资源映射路径
|
|
|
|
|
file.dir = D:\\kkFileview\\
|
|
|
|
|
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
|
|
|
|
|
## openoffice home路径
|
|
|
|
|
office.home = C:\\Program Files (x86)\\OpenOffice 4
|
|
|
|
|
server.tomcat.uri-encoding = UTF-8
|
|
|
|
|
#文件上传限制
|
|
|
|
|
spring.http.multipart.max-file-size=100MB
|
2019-04-11 14:45:22 +08:00
|
|
|
|
|
|
|
|
|
#缓存实现类型,不配默认为JDK实现,可配置为redis实现(需要配置spring.redisson.address等参数)
|
|
|
|
|
#cache.type = redis
|
|
|
|
|
#redis连接
|
|
|
|
|
#spring.redisson.address = 192.168.1.204:6379
|
|
|
|
|
|
|
|
|
|
#######################################可在运行时动态配置#######################################
|
2019-04-08 18:26:01 +08:00
|
|
|
|
##文本类型
|
|
|
|
|
simText = txt,html,xml,java,properties,mp3,mp4,sql
|
|
|
|
|
#多媒体类型
|
|
|
|
|
media=mp3,mp4,flv,
|
2019-04-11 14:45:22 +08:00
|
|
|
|
#文件转换编码
|
|
|
|
|
converted.file.charset = GBK
|