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" %> - - - Home - - -

- Hello world! -

- -

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 @@ - Co-Book World! - + + + - + @@ -29,8 +35,7 @@ - + @@ -49,6 +54,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Movies List

+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/mybook/mybookList.jsp b/src/main/webapp/WEB-INF/views/mybook/mybookList.jsp new file mode 100644 index 0000000..060a14c --- /dev/null +++ b/src/main/webapp/WEB-INF/views/mybook/mybookList.jsp @@ -0,0 +1,248 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + +
+
+

Search Results : 25

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
No.Movie NameYearStatusCountryGenreRating
1 01 Ben-Hur2013HDUnited KingdomComedy, Drama7.0
2 001 Southside with you2011HDKoreaDrama7.5
3 12 Bad Moms2010SDUnited KingdomComedy6.5
4 2 Sausage Party2013HDUnited KingdomComedy, Drama7.0
5 2.0 Morgan2014HDUnited StatesAction7.1
6 242016HDIndiaThriller, Drama9.0
7 001 The Secret Life of Pets2012HDEuro, FranceThriller, Crime, Drama8.2
8 12 Hell or High Water2010HDChinaComedy8.9
9 2 Central Intelligence2010HDUnited KingdomComedy, Drama7.0
10 3 The Jungle Book2014HDJapanAction7.1
11 01 Independence Day2013HDUnited KingdomComedy, Drama7.0
12 01 Ben-Hur2013HDUnited KingdomComedy, Drama7.0
13 001 Southside with you2011HDKoreaDrama7.5
14 12 Bad Moms2010SDUnited KingdomComedy6.5
15 2 Sausage Party2013HDUnited KingdomComedy, Drama7.0
16 2.0 Morgan2014HDUnited StatesHorror7.1
17 242016HDIndiaThriller, Drama9.0
18 001 The Secret Life of Pets2012HDEuro, FranceThriller, Crime, Drama8.2
19 12 Hell or High Water2010HDChinaComedy8.9
20 2 Central Intelligence2010HDUnited KingdomComedy, Drama7.0
21 3 The Jungle Book2014HDJapanAction7.1
22 01 Independence Day2013HDUnited KingdomComedy, Drama7.0
23 01 Ben-Hur2013HDUnited KingdomComedy, Drama7.0
24 001 Southside with you2011HDKoreaDrama7.5
25 12 Bad Moms2010SDUnited KingdomComedy6.5
+
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/review.jsp b/src/main/webapp/WEB-INF/views/review.jsp new file mode 100644 index 0000000..5b6be6c --- /dev/null +++ b/src/main/webapp/WEB-INF/views/review.jsp @@ -0,0 +1,173 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + +Co-Book World! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+ +
+ +
+ +
+
+
+
+
+ +
+
+

최근 리뷰

+
+
+
+ +
+ + +
+ + +
+ +
+
+
+ + +
+
+

실시간 댓글

+
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/review/bestReply.jsp b/src/main/webapp/WEB-INF/views/review/bestReply.jsp new file mode 100644 index 0000000..7358702 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/review/bestReply.jsp @@ -0,0 +1,71 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/review/lastedReviewList.jsp b/src/main/webapp/WEB-INF/views/review/lastedReviewList.jsp new file mode 100644 index 0000000..688409e --- /dev/null +++ b/src/main/webapp/WEB-INF/views/review/lastedReviewList.jsp @@ -0,0 +1,44 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +
+
+ 오베라는 남자 +

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

+
+
+ 차차의 책 1권 +

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.

+
+
+ September 24,2016 +

In lobortis ipsum mi, ac imperdiet elit pellentesque at.

+
+
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/review/reviewList.jsp b/src/main/webapp/WEB-INF/views/review/reviewList.jsp new file mode 100644 index 0000000..38c6e10 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/review/reviewList.jsp @@ -0,0 +1,253 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + +
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+ +
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+

Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
    +
  • 24/09/2016
  • +
  • 2642
  • +
+
+
+
+
+
+
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/review/single.jsp b/src/main/webapp/WEB-INF/views/review/single.jsp new file mode 100644 index 0000000..8c019c7 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/review/single.jsp @@ -0,0 +1,493 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + + +Co-Book World! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+ +

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tristique mattis fermentum. Etiam semper aliquet massa, id tempus massa mattis eget.

+
+

Posted By Admin    June 2, 2016    Comments (10)

+
+
+
+
    +
  • +
    + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
    + + + +
  • +
+
+
+

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. +

+
+
+
+ + +
+
+

Comments

+
+
+
+ + +
+
+ +
+
+

Updated News

+
+
+
+ +
+
+
+ August 15,2016 +

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

+
+
+ July 08,2016 +

Nullam non turpis sit amet metus tristique egestas et et orci.

+
+
+ February 15,2016 +

Duis venenatis ac ipsum vel ultricies in placerat quam

+
+
+ January 15,2016 +

Pellentesque ullamcorper fringilla ipsum, ornare dapibus velit volutpat sit amet.

+
+
+ September 24,2016 +

In lobortis ipsum mi, ac imperdiet elit pellentesque at.

+
+
+ August 15,2016 +

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

+
+
+ July 08,2016 +

Nullam non turpis sit amet metus tristique egestas et et orci.

+
+
+ February 15,2016 +

Duis venenatis ac ipsum vel ultricies in placerat quam

+
+
+ January 15,2016 +

Pellentesque ullamcorper fringilla ipsum, ornare dapibus velit volutpat sit amet.

+
+
+ September 24,2016 +

In lobortis ipsum mi, ac imperdiet elit pellentesque at.

+
+
+ + +
+ +
+
+
+ + + + +
+
+
+
+
+

Latest Movies

+
+ +
+
+  +
+
+
+ +
+ +

2016

+
+
    +
  • +
  • +
  • +
  • +
  • + + +
+
+
+
+ +
+
+

NEW

+
+
+
+  +
+
+
+
+
The BFG
+
+
+ +

2016

+
+
    +
  • +
  • +
  • +
  • +
  • + + +
+
+
+
+ +
+
+

NEW

+
+
+
+  +
+
+
+ +
+ +

2016

+
+
    +
  • +
  • +
  • +
  • +
  • + + +
+
+
+
+ +
+
+

NEW

+
+
+
+  +
+
+
+ +
+ +

2016

+
+
    +
  • +
  • +
  • +
  • +
  • + + +
+
+
+
+ +
+
+

NEW

+
+
+
+  +
+
+
+
+
X-Men
+
+
+ +

2016

+
+
    +
  • +
  • +
  • +
  • +
  • + + +
+
+
+
+ +
+
+

NEW

+
+
+
+  +
+
+
+
+
Greater
+
+
+ +

2016

+
+
    +
  • +
  • +
  • +
  • +
  • + + +
+
+
+
+ +
+
+

NEW

+
+
+ +
+
+ + +
+
+
+ + + + \ No newline at end of file diff --git a/src/main/webapp/resources/index/banner.jsp b/src/main/webapp/resources/index/banner.jsp deleted file mode 100644 index c3d042c..0000000 --- a/src/main/webapp/resources/index/banner.jsp +++ /dev/null @@ -1,285 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/resources/index/header.jsp b/src/main/webapp/resources/index/header.jsp deleted file mode 100644 index 2181dce..0000000 --- a/src/main/webapp/resources/index/header.jsp +++ /dev/null @@ -1,39 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> -
-
- - - -
-
-
\ No newline at end of file diff --git a/target/classes/com/cobook/boot/HomeController.class b/target/classes/com/cobook/boot/HomeController.class index 8f4f80b..a2b0b99 100644 Binary files a/target/classes/com/cobook/boot/HomeController.class and b/target/classes/com/cobook/boot/HomeController.class differ diff --git a/target/m2e-wtp/web-resources/META-INF/maven/com.cobook/boot/pom.properties b/target/m2e-wtp/web-resources/META-INF/maven/com.cobook/boot/pom.properties index 04d5dfd..e19a0a6 100644 --- a/target/m2e-wtp/web-resources/META-INF/maven/com.cobook/boot/pom.properties +++ b/target/m2e-wtp/web-resources/META-INF/maven/com.cobook/boot/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Tue Mar 07 09:47:55 KST 2017 +#Thu Mar 16 20:23:22 KST 2017 version=1.0.0-BUILD-SNAPSHOT groupId=com.cobook m2e.projectName=CoBookDesignSample