1.添加依赖:springboot实现
org.springframework.boot
spring-boot-starter-parent
2.1.3.RELEASE
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-thymeleaf
net.sourceforge.nekohtml
nekohtml
1.9.22
org.csource
fastdfs-client-java
1.27-SNAPSHOT
org.projectlombok
lombok
1.16.20
org.slf4j
slf4j-api
com.google.http-client
google-http-client
1.19.0
fastdfs_client
fastdfs_client
1.25
org.springframework.boot
spring-boot-maven-plugin
org.apache.maven.plugins
maven-compiler-plugin
7
7
2.配置文件 application.yml
server:
port: 8081
spring:
http:
multipart:
max-file-size: 30MB
max-request-size: 40MB
3.配置文件 dfs.properties
#fastdfs核心配置
connect_timeout= 60
network_timeout= 60
charset= UTF-8
http.tracker_http_port= 8080
http.secret_key= 123456
http.anti_steal_token= false
#配置追踪服务器地址
tracker_server= 192.168.242.128:22122
4.前端页面1 upload.html
FastDFS文件上传
4.前端页面1 status.html
FastDFS文件上传状态
![在这里插入图片描述]()