java实现文件高速秒传_SpringBoot大文件上传、js、分片上传、断点续传、秒传、大文件上传实例...

package com.dai.controller;

import com.dai.tool.http.Result;

import com.dai.tool.upload.local.LocalUpload;

import com.dai.tool.upload.local.pojo.UploadFileParam;

import lombok.extern.slf4j.Slf4j;

import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

import java.io.File;

/**

* @program: toolupload

* @description: 上传文件、妙传、断点续传样例-demo

* @author: Dai Yuanchuan

* @create: 2019-10-30 08:24

**/

@RestController

@Slf4j

@RequestMapping(value = "/uploader")

public class UploadDemoController {

static {

// 修改文件上传的默认路径(如果需要用到的话)

LocalUpload.defaultPath = System.getProperty("user.dir")

+ File.separatorChar + "log"

+ File.separatorChar + 

你可能感兴趣的:(java实现文件高速秒传)