import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.support.DefaultMultipartHttpServletRequest; import javax.servlet.http.HttpServletRequest; import java.io.File; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.UUID; @Controller @RequestMapping("/file")
上传文件或图片 controller层
最新推荐文章于 2022-04-29 19:17:48 发布