[Spring][쇼핑몰 프로젝트][15] 작가목록 기능 구현 - 2
https://kimvampa.tistory.com/184?category=771727
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
package com.vam.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
|
||||
|
||||
import com.vam.model.AuthorVO;
|
||||
import com.vam.model.Criteria;
|
||||
import com.vam.service.AuthorService;
|
||||
|
||||
@Controller
|
||||
@@ -48,8 +52,15 @@ public class AdminController {
|
||||
|
||||
/* 작가 관리 페이지 접속 */
|
||||
@RequestMapping(value = "authorManage", method = RequestMethod.GET)
|
||||
public void authorManageGET() throws Exception{
|
||||
logger.info("작가 관리 페이지 접속");
|
||||
public void authorManageGET(Criteria cri, Model model) throws Exception{
|
||||
|
||||
logger.info("작가 관리 페이지 접속.........." + cri);
|
||||
|
||||
/* 작가 목록 출력 데이터 */
|
||||
List list = authorService.authorGetList(cri);
|
||||
|
||||
model.addAttribute("list", list);
|
||||
|
||||
}
|
||||
|
||||
/* 작가 등록 */
|
||||
|
||||
Reference in New Issue
Block a user