| | |
| | | import com.zy.sc.common.service.OssService; |
| | | import com.zy.sc.manager.entity.Issue; |
| | | import com.zy.sc.manager.service.IssueService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | /** |
| | | * Created by vincent on 2020/10/7 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | public class UploadController extends BaseController { |
| | | |
| | |
| | | |
| | | @PostMapping("/upload.action") |
| | | public R upload(MultipartFile file) { |
| | | log.info("开始上传文件:{};文件大小:{}", file.getOriginalFilename(), file.getSize()); |
| | | InputStream inputStream = null; |
| | | try { |
| | | inputStream = file.getInputStream(); |