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); }