From dd53900fbcea28f9c891e0f45f452b6029cd7a9b Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 22 Aug 2024 14:56:59 +0900 Subject: [PATCH] =?UTF-8?q?setCollectionInfo(..)=20=EC=9B=90=EB=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/base/user/web/UserController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/cokr/xit/base/user/web/UserController.java b/src/main/java/cokr/xit/base/user/web/UserController.java index 1caf0df..cad6419 100644 --- a/src/main/java/cokr/xit/base/user/web/UserController.java +++ b/src/main/java/cokr/xit/base/user/web/UserController.java @@ -43,8 +43,7 @@ public class UserController extends AbstractController { ModelAndView mav = getUserList(new UserQuery().setPageNum(1)); mav.setViewName("base/user/user-main"); return mav - .addObject("userList", toJson(mav.getModel().get("userList"))) - .addObject("userPaging", toJson(mav.getModel().get("userPaging"))); + .addObject("userList", toJson(mav.getModel().get("userList"))); } /**사용자 목록을 조회하여 반환한다.
@@ -61,7 +60,7 @@ public class UserController extends AbstractController { @RequestMapping(name="사용자 조회", value="/list.do") public ModelAndView getUserList(UserQuery req) { List result = userService.getUserList(setFetchSize(req)); - return setPagingInfo(new ModelAndView("jsonView"), result, "user"); + return setCollectionInfo(new ModelAndView("jsonView"), result, "user"); } /**사용자 선택을 위한 화면을 연다.