[Spring][쇼핑몰 프로젝트][16] 작가 상세 페이지

https://kimvampa.tistory.com/187
This commit is contained in:
SeoJin Kim
2021-03-15 09:09:52 +09:00
parent cee5f89f3d
commit dfb7e189ea
26 changed files with 911 additions and 18 deletions

View File

@@ -7,6 +7,7 @@ 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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
@@ -84,6 +85,20 @@ public class AdminController {
return "redirect:/admin/authorManage";
}
/* 작가 상세 페이지 */
@GetMapping("/authorDetail")
public void authorGetInfoGET(int authorId, Criteria cri, Model model) throws Exception {
logger.info("authorDetail......." + authorId);
/* 작가 관리 페이지 정보 */
model.addAttribute("cri", cri);
/* 선택 작가 정보 */
model.addAttribute("authorInfo", authorService.authorGetDetail(authorId));
}
}