@@ -16,6 +16,7 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.util.FileCopyUtils;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
@@ -117,6 +118,17 @@ public class BookController {
|
||||
|
||||
}
|
||||
|
||||
/* 상품 상세 */
|
||||
@GetMapping("/goodsDetail/{bookId}")
|
||||
public String goodsDetailGET(@PathVariable("bookId")int bookId, Model model) {
|
||||
|
||||
logger.info("goodsDetailGET()..........");
|
||||
|
||||
model.addAttribute("goodsInfo", bookService.getGoodsInfo(bookId));
|
||||
|
||||
return "/goodsDetail";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user