Delete FileController.java

This commit is contained in:
Amitabh Tiwari 2022-08-12 11:18:29 +05:30
parent d8a58d8e0f
commit 5c14183ac9
1 changed files with 0 additions and 18 deletions

View File

@ -1,18 +0,0 @@
package com.baeldung.cloud.openfeign.fileupload.controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.baeldung.cloud.openfeign.exception.NotFoundException;
@RestController
public class FileController {
@PostMapping(value = "/upload-error")
public String uploadFileWithFallback(@RequestPart(value = "file") MultipartFile file) throws NotFoundException {
throw new NotFoundException("Not Found!!!");
}
}