点击上方 Java老铁,并选择 设为星标
优质文章和资料会及时送达
添加Maven依赖
<dependency>
<groupId>com.github.tobato</groupId>
<artifactId>fastdfs-client</artifactId>
<version>1.26.2</version>
</dependency>
编写配置文件
server:
port: 9009
spring:
application:
name: springBoot-upload
servlet:
multipart:
max-file-size: 5MB # 限制文件上传的大小
fdfs:
so-timeout: 1501 # 超时时间
connect-timeout: 601 # 连接超时时间
thumb-image: # 缩略图
width: 60
height: 60
tracker-lis

本文介绍了如何使用SpringBoot、Vue和ElementUI结合FastDFS实现图片上传功能,包括添加Maven依赖、配置文件编写、service和Controller的实现,以及前端Vue组件的开发,提供了一个运行地址供测试,前端代码已开源。
最低0.47元/天 解锁文章
3141





