diff --git a/src/main/java/com/cobook/boot/HomeController.java b/src/main/java/com/cobook/boot/HomeController.java index eeb8507..6c1f926 100644 --- a/src/main/java/com/cobook/boot/HomeController.java +++ b/src/main/java/com/cobook/boot/HomeController.java @@ -19,62 +19,113 @@ public class HomeController { private static final Logger logger = LoggerFactory.getLogger(HomeController.class); + /** - * Simply selects the home view to render by returning its name. - * boot + * index + * @param model + * @return */ - @RequestMapping(value = "/", method = RequestMethod.GET) - public String home(Locale locale, Model model) { - logger.info("Welcome home! The client locale is {}.", locale); - - Date date = new Date(); - DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale); - - String formattedDate = dateFormat.format(date); - - model.addAttribute("serverTime", formattedDate ); - - return "home"; - } - - + //메인페이지 @RequestMapping(value = "/index", method = RequestMethod.GET) - public String home2(Locale locale, Model model) { + public String index( Model model) { logger.info("index"); - - Date date = new Date(); - DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale); - - String formattedDate = dateFormat.format(date); - - model.addAttribute("serverTime", formattedDate ); - return "index"; } - - + @RequestMapping(value = "/", method = RequestMethod.GET) + public String cobook(Model model) { + logger.info("index2"); + return "index"; + } + + //메인페이지 광고 + 추천도서 (코북에서 선정한 책 5권) @RequestMapping(value = "/index/banner", method = RequestMethod.GET) public String banner(Locale locale, Model model) { logger.info("index/banner"); return "index/banner"; } - + //월간 베스트 도서 - 한달동안 대여가 많이된책 Top 10 @RequestMapping(value = "/index/cobookList", method = RequestMethod.GET) public String cobookList(Locale locale, Model model) { logger.info("index/cobookList"); return "index/cobookList"; } - - + //코북 화제의 도서 - 별점순, 인기순(리뷰많은것), 완독순, 최신순 @RequestMapping(value = "/index/monthlyList", method = RequestMethod.GET) public String monthlyList(Locale locale, Model model) { logger.info("index/monthlyList"); return "index/monthlyList"; } - + //알라딘리스트 @RequestMapping(value = "/index/alladinList", method = RequestMethod.GET) public String alladinList(Locale locale, Model model) { logger.info("index/alladinList"); return "index/alladinList"; } + + //****************************mybook + /** + * MyBook + * @param locale + * @param model + * @return + */ + @RequestMapping(value = "/mybook", method = RequestMethod.GET) + public String mybook(Locale locale, Model model) { + logger.info("mybook"); + return "mybook"; + } + //Mybook리스트 - + @RequestMapping(value = "/mybook/mybookList", method = RequestMethod.GET) + public String mybookList(Locale locale, Model model) { + logger.info("mybookList"); + return "mybook/mybookList"; + } + + //****************************Review + /** + * Review + * @param locale + * @param model + * @return + */ + @RequestMapping(value = "/review", method = RequestMethod.GET) + public String review(Locale locale, Model model) { + logger.info("review"); + return "review"; + } + //리뷰 리스트 최신순, 인기순 + @RequestMapping(value = "/review/reviewList", method = RequestMethod.GET) + public String reviewList( Model model) { + logger.info("reviewList"); + return "review/reviewList"; + } + //최신 리뷰 - 최신에 쓰여진 리뷰(책이름 , 리뷰 제목 ) + @RequestMapping(value = "/review/lastedReviewList", method = RequestMethod.GET) + public String lastedReviewList( Model model) { + logger.info("lastedReviewList"); + return "review/lastedReviewList"; + } + //베스트 댓글 (좋아요 많은순,클릭시 해당 리뷰 게시판으로 이동) + @RequestMapping(value = "/review/bestReply", method = RequestMethod.GET) + public String bestReply(Model model) { + logger.info("bestReply"); + return "review/bestReply"; + } + + + //****************************Review Single + /** + * + * @param model + * @return + */ + @RequestMapping(value = "/review/single", method = RequestMethod.GET) + public String single( Model model) { + logger.info("/review/single"); + return "/review/single"; + } + + + + } diff --git a/src/main/webapp/WEB-INF/views/index/footer.jsp b/src/main/webapp/WEB-INF/views/footer.jsp similarity index 100% rename from src/main/webapp/WEB-INF/views/index/footer.jsp rename to src/main/webapp/WEB-INF/views/footer.jsp diff --git a/src/main/webapp/WEB-INF/views/index/header.jsp b/src/main/webapp/WEB-INF/views/header.jsp similarity index 100% rename from src/main/webapp/WEB-INF/views/index/header.jsp rename to src/main/webapp/WEB-INF/views/header.jsp diff --git a/src/main/webapp/WEB-INF/views/home.jsp b/src/main/webapp/WEB-INF/views/home.jsp deleted file mode 100644 index 4783383..0000000 --- a/src/main/webapp/WEB-INF/views/home.jsp +++ /dev/null @@ -1,14 +0,0 @@ -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> -<%@ page session="false" %> - -
-The time on the server is ${serverTime}.
- - diff --git a/src/main/webapp/WEB-INF/views/index.jsp b/src/main/webapp/WEB-INF/views/index.jsp index 96267a8..016b185 100644 --- a/src/main/webapp/WEB-INF/views/index.jsp +++ b/src/main/webapp/WEB-INF/views/index.jsp @@ -4,16 +4,22 @@ -No. | +Movie Name | +Year | +Status | +Country | +Genre | +Rating | +
---|---|---|---|---|---|---|
1 | +![]() |
+ 2013 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
2 | +![]() |
+ 2011 | +HD | +Korea | +Drama | +7.5 | +
3 | +![]() |
+ 2010 | +SD | +United Kingdom | +Comedy | +6.5 | +
4 | +![]() |
+ 2013 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
5 | +![]() |
+ 2014 | +HD | +United States | +Action | +7.1 | +
6 | +![]() |
+ 2016 | +HD | +India | +Thriller, Drama | +9.0 | +
7 | +![]() |
+ 2012 | +HD | +Euro, France | +Thriller, Crime, Drama | +8.2 | +
8 | +![]() |
+ 2010 | +HD | +China | +Comedy | +8.9 | +
9 | +![]() |
+ 2010 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
10 | +![]() |
+ 2014 | +HD | +Japan | +Action | +7.1 | +
11 | +![]() |
+ 2013 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
12 | +![]() |
+ 2013 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
13 | +![]() |
+ 2011 | +HD | +Korea | +Drama | +7.5 | +
14 | +![]() |
+ 2010 | +SD | +United Kingdom | +Comedy | +6.5 | +
15 | +![]() |
+ 2013 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
16 | +![]() |
+ 2014 | +HD | +United States | +Horror | +7.1 | +
17 | +![]() |
+ 2016 | +HD | +India | +Thriller, Drama | +9.0 | +
18 | +![]() |
+ 2012 | +HD | +Euro, France | +Thriller, Crime, Drama | +8.2 | +
19 | +![]() |
+ 2010 | +HD | +China | +Comedy | +8.9 | +
20 | +![]() |
+ 2010 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
21 | +![]() |
+ 2014 | +HD | +Japan | +Action | +7.1 | +
22 | +![]() |
+ 2013 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
23 | +![]() |
+ 2013 | +HD | +United Kingdom | +Comedy, Drama | +7.0 | +
24 | +![]() |
+ 2011 | +HD | +Korea | +Drama | +7.5 | +
25 | +![]() |
+ 2010 | +SD | +United Kingdom | +Comedy | +6.5 | +
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+Nullam non turpis sit amet metus tristique egestas et et orci.
+Duis venenatis ac ipsum vel ultricies in placerat quam
+Pellentesque ullamcorper fringilla ipsum, ornare dapibus velit volutpat sit amet.
+In lobortis ipsum mi, ac imperdiet elit pellentesque at.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+Nullam non turpis sit amet metus tristique egestas et et orci.
+Duis venenatis ac ipsum vel ultricies in placerat quam
+Pellentesque ullamcorper fringilla ipsum, ornare dapibus velit volutpat sit amet.
+In lobortis ipsum mi, ac imperdiet elit pellentesque at.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.
+Pellentesque vel urna accumsan, dictum sapien vitae, condimentum tellus. Nulla fermentum enim vitae commodo dapibus. Vivamus diam ligula, accumsan non malesuada et, interdum malesuada turpis. Donec posuere eros eget velit iaculis consequat. Vestibulum ante felis, congue a sapien pharetra, sodales congue magna. Curabitur id varius urna. Morbi finibus, velit sagittis fermentum venenatis, erat risus elementum nibh, at commodo lorem orci sed nulla. Pellentesque eu velit pulvinar, scelerisque lacus ut, semper dolor. + Donec semper, nibh et lacinia sollicitudin, nibh dui pellentesque elit, eu placerat leo felis nec nunc. Sed bibendum pretium metus eget euismod. Mauris id lacus lacus. Praesent faucibus nunc eget turpis tristique molestie. Duis dui diam, tristique eu gravida ut, congue eget felis. Proin sapien ligula, volutpat ut ultrices sit amet, dignissim quis urna. + Cras fermentum eu dolor in porttitor. Praesent sagittis sollicitudin scelerisque. Vivamus ac erat in ex consectetur imperdiet vel eget sapien. Duis viverra nisi id leo varius, vitae eleifend turpis vulputate. Mauris eget sagittis augue, ut efficitur mauris. Aenean risus nisi, faucibus eget condimentum at, porttitor vel felis. Aliquam eu augue ut tortor gravida iaculis in in orci. Quisque vehicula consectetur sagittis. +
+Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+Nullam non turpis sit amet metus tristique egestas et et orci.
+Duis venenatis ac ipsum vel ultricies in placerat quam
+Pellentesque ullamcorper fringilla ipsum, ornare dapibus velit volutpat sit amet.
+In lobortis ipsum mi, ac imperdiet elit pellentesque at.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+Nullam non turpis sit amet metus tristique egestas et et orci.
+Duis venenatis ac ipsum vel ultricies in placerat quam
+Pellentesque ullamcorper fringilla ipsum, ornare dapibus velit volutpat sit amet.
+In lobortis ipsum mi, ac imperdiet elit pellentesque at.
+
Comments
+ +