From 4aa2163f21e7446f8dbc23632baa2baedcb3e9c8 Mon Sep 17 00:00:00 2001 From: xit Date: Wed, 3 May 2023 13:37:52 +0900 Subject: [PATCH] =?UTF-8?q?CodeController.main()=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/base/code/web/CodeController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/base/code/web/CodeController.java b/src/main/java/cokr/xit/base/code/web/CodeController.java index d6198b6..7ecaac5 100644 --- a/src/main/java/cokr/xit/base/code/web/CodeController.java +++ b/src/main/java/cokr/xit/base/code/web/CodeController.java @@ -37,7 +37,9 @@ public class CodeController extends AbstractController { */ @RequestMapping(name="공통코드 메인", value="/main.do") public ModelAndView main() { - return new ModelAndView("base/code/code-main"); + ModelAndView mav = getGroupList(new CodeQuery().setPageNum(1)); + mav.setViewName("base/code/code-main"); + return mav.addObject("groupList", toJson(mav.getModel().remove("groupList"))); } /**코드 분류 목록을 조회한다.