From c82a5075a4b23e9ffc53b638615a8ea1aa841dcd Mon Sep 17 00:00:00 2001 From: woody35545 Date: Sat, 7 Oct 2023 20:38:38 +0900 Subject: [PATCH] =?UTF-8?q?[~]=20#64=20AnswerService=EC=9D=98=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=EA=B0=92=20=EB=B3=80=EA=B2=BD=EC=97=90=20=EB=94=B0?= =?UTF-8?q?=EB=A5=B8=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/com/kns/tenquest/controller/ViewController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/kns/tenquest/controller/ViewController.java b/src/main/java/com/kns/tenquest/controller/ViewController.java index 55f9e09..4f6f437 100644 --- a/src/main/java/com/kns/tenquest/controller/ViewController.java +++ b/src/main/java/com/kns/tenquest/controller/ViewController.java @@ -43,7 +43,8 @@ public String memberView(Model model) { @GetMapping("/answers") public String answerView(Model model) { // Temporarily implemented. Just for test. - List answerList = answerService.getAllAnswers(); + ServiceResult sr = answerService.getAllAnswers(); + DtoList answerList = (DtoList)sr.getData(); model.addAttribute("answerList", answerList); return "answer_view"; }