From 92e917c01aadb08789d6b17dc597514a10c20dfe Mon Sep 17 00:00:00 2001 From: daniel LEE Date: Thu, 2 Nov 2023 12:26:59 +0900 Subject: [PATCH] =?UTF-8?q?post=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/demo/controller/UserProfileController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/demo/controller/UserProfileController.java b/src/main/java/com/example/demo/controller/UserProfileController.java index b9ea630..2a43314 100644 --- a/src/main/java/com/example/demo/controller/UserProfileController.java +++ b/src/main/java/com/example/demo/controller/UserProfileController.java @@ -48,7 +48,7 @@ public class UserProfileController { @PostMapping("/user/{id}") // public HashMap putUserProfile(@PathVariable String id, @RequestParam String name, // public void putUserProfile(@PathVariable String id, @RequestParam String name, - public List putUserProfile(@PathVariable String id, @RequestParam("name") String name, + public List postUserProfile(@PathVariable String id, @RequestParam String name, @RequestParam String phone, @RequestParam String address, @RequestParam MultipartFile upfile) { @@ -122,7 +122,7 @@ public class UserProfileController { } @PutMapping("/user/{id}") - public void postUserProfile(@PathVariable String id, @RequestParam String name, + public void putUserProfile(@PathVariable String id, @RequestParam String name, @RequestParam String phone, @RequestParam String address, @RequestParam String filepath) { mapper.updateUserProfile(id, name, phone, address, filepath); }