开始使用
当前MASTER为1.1.0-SNAPSHOT版本
一.环境配置
1.在pom文件中加入依赖:
com.gomyck
gomyck-fastdfs-spring-boot-starter
1.0.2-Release
2.编辑yml文件(以下为全量配置):
#单个文件上传大小限制
spring:
servlet:
multipart:
max-file-size: 5000MB
#fastdfs客户端配置
fdfs:
connect-timeout: 1601
thumb-image:
width: 150
height: 150
pool:
jmx-name-prefix: 1
jmx-name-base: 1
max-wait-millis: 102
tracker-list:
- 192.168.1.1:22122 #fastdfs服务地址
so-timeout: 1501
pool:
max-total: 153
gomyck:
config:
redis: true #是否使用redis存储文件上传信息以及上传锁
redis:
host: 127.0.0.1
password: xxxxx
port: 6379
fastdfs: #fastdfs上传配置
chunk-size: 5 #分块大小, 上传文件分块的大小 单位: MB
download-chunk-size: 100 #分块下载大小 单位: byte
<