Delete FileController.java
This commit is contained in:
parent
d8a58d8e0f
commit
5c14183ac9
|
@ -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!!!");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue