[Spring][쇼핑몰 프로젝트][33] 메인화면 네비 기능(<a>태그 동적 추가)

https://kimvampa.tistory.com/252
This commit is contained in:
SeoJin Kim
2021-09-27 21:11:38 +09:00
parent 3ccf90f845
commit 7732cd200f
14 changed files with 163 additions and 33 deletions

View File

@@ -39,8 +39,13 @@ public class BookController {
//메인 페이지 이동
@RequestMapping(value="/main", method = RequestMethod.GET)
public void mainPageGET() {
public void mainPageGET(Model model) {
logger.info("메인 페이지 진입");
model.addAttribute("cate1", bookService.getCateCode1());
model.addAttribute("cate2", bookService.getCateCode2());
}