springboot集成FastDFS
1.添加依赖
新建一个springboot项目,在pom.xml文件中导入fastDFS客户端依赖,
2.导入配置
在启动类中,添加@Import(FdfsClientConfig.class)
3.配置application.yml
4.编程
package com.learn;
import com.github.tobato.fastdfs.domain.StorePath;
import com.github.tobato.fastdfs.service.FastFileStorageClient;
import org.junit.jupiter.api.Test