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
|
|
|
|
|
|
|
|
|
|
|
|
server.tomcat.uri-encoding = UTF-8
|
|
|
|
|
|
#文件上传限制
|
2019-05-07 10:15:25 +08:00
|
|
|
|
spring.http.multipart.max-request-size=100MB
|
2019-04-08 18:26:01 +08:00
|
|
|
|
spring.http.multipart.max-file-size=100MB
|
2019-04-11 14:45:22 +08:00
|
|
|
|
|
2019-04-16 21:09:32 +08:00
|
|
|
|
#文件资源路径(默认为打包根路径下的file目录下)
|
|
|
|
|
|
#file.dir = D:\\kkFileview\\
|
|
|
|
|
|
#openoffice home路径
|
|
|
|
|
|
#office.home = C:\\Program Files (x86)\\OpenOffice 4
|
|
|
|
|
|
|
2019-04-22 11:40:13 +08:00
|
|
|
|
#缓存实现类型,不配默认为内嵌RocksDB实现,可配置为redis(type = redis)实现(需要配置spring.redisson.address等参数)和 JDK 内置对象实现(type = jdk),
|
2019-04-11 14:45:22 +08:00
|
|
|
|
#cache.type = redis
|
|
|
|
|
|
#redis连接
|
|
|
|
|
|
#spring.redisson.address = 192.168.1.204:6379
|
2019-04-22 11:40:13 +08:00
|
|
|
|
#spring.redisson.password = xxx
|
2019-06-11 09:53:39 +08:00
|
|
|
|
#缓存自动清理(每晚3点自动清理) true 为开启,注释掉或其他值都为关闭
|
|
|
|
|
|
cache.clean = true
|
2019-04-11 14:45:22 +08:00
|
|
|
|
|
|
|
|
|
|
#######################################可在运行时动态配置#######################################
|
2019-04-17 11:56:35 +08:00
|
|
|
|
#文本类型,默认如下,可自定义添加
|
|
|
|
|
|
#simText = txt,html,xml,properties,md,java,py,c,cpp,sql
|
|
|
|
|
|
#多媒体类型,默认如下,可自定义添加
|
|
|
|
|
|
#media = mp3,wav,mp4,flv
|
|
|
|
|
|
#文件转换编码,默认根据操作系统获取
|
|
|
|
|
|
#converted.file.charset = GBK
|
2019-04-25 18:39:58 +08:00
|
|
|
|
#office类型文档(word ppt)样式,默认为图片(image),可配置为pdf(预览时也有按钮切换)
|
|
|
|
|
|
#office.preview.type = pdf
|
2019-06-19 14:18:09 +08:00
|
|
|
|
|
|
|
|
|
|
#预览源为FTP时 FTP用户名,可在ftp url后面加参数ftp.username=ftpuser指定,不指定默认用配置的
|
|
|
|
|
|
ftp.username = ftpuser
|
|
|
|
|
|
#预览源为FTP时 FTP密码,可在ftp url后面加参数ftp.password=123456指定,不指定默认用配置的
|
|
|
|
|
|
ftp.password = 123456
|
|
|
|
|
|
#预览源为FTP时, FTP连接默认ControlEncoding(根据FTP服务器操作系统选择,Linux一般为UTF-8,Windows一般为GBK),可在ftp url后面加参数ftp.control.encoding=UTF-8指定,不指定默认用配置的
|
|
|
|
|
|
ftp.control.encoding = UTF-8
|