From 25997d6c14b7c3d451a963c33a628bcaf07448fe Mon Sep 17 00:00:00 2001 From: daniel LEE Date: Thu, 2 Nov 2023 12:06:35 +0900 Subject: [PATCH] =?UTF-8?q?add.jsp=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/controller/UserProfileController.java | 2 +- src/main/webapp/WEB-INF/views/add.jsp | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/example/demo/controller/UserProfileController.java b/src/main/java/com/example/demo/controller/UserProfileController.java index 4dcb526..b9ea630 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 String name, + public List putUserProfile(@PathVariable String id, @RequestParam("name") String name, @RequestParam String phone, @RequestParam String address, @RequestParam MultipartFile upfile) { diff --git a/src/main/webapp/WEB-INF/views/add.jsp b/src/main/webapp/WEB-INF/views/add.jsp index 124be94..9599422 100644 --- a/src/main/webapp/WEB-INF/views/add.jsp +++ b/src/main/webapp/WEB-INF/views/add.jsp @@ -11,16 +11,20 @@