import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
/**
- 保存图片
- @author: dupei
- @date: 2019/9/29 15:38
*/
public class TestFile {
void upload(MultipartFile file) throws IOException {
file.transferTo(new java.io.File("path"+file.getOriginalFilename()));
}
}