diff --git a/spring-boot-modules/spring-boot-mvc-4/src/main/java/com/baeldung/postman/controller/PostmanUploadController.java b/spring-boot-modules/spring-boot-mvc-4/src/main/java/com/baeldung/postman/controller/PostmanUploadController.java index 3ee5cf28e5..ac19110318 100644 --- a/spring-boot-modules/spring-boot-mvc-4/src/main/java/com/baeldung/postman/controller/PostmanUploadController.java +++ b/spring-boot-modules/spring-boot-mvc-4/src/main/java/com/baeldung/postman/controller/PostmanUploadController.java @@ -13,12 +13,14 @@ import com.baeldung.postman.model.JsonRequest; public class PostmanUploadController { @PostMapping("/uploadFile") - public ResponseEntity handleFileUpload(@RequestParam("file") MultipartFile file){ - return ResponseEntity.ok().body("file received successfully"); + public ResponseEntity handleFileUpload(@RequestParam("file") MultipartFile file) { + return ResponseEntity.ok() + .body("file received successfully"); } @PostMapping("/uploadJson") - public ResponseEntity handleJsonInput(@RequestBody JsonRequest json){ - return ResponseEntity.ok().body(json.getId()+json.getName()); + public ResponseEntity handleJsonInput(@RequestBody JsonRequest json) { + return ResponseEntity.ok() + .body(json.getId() + json.getName()); } }