diff --git a/VamPa/src/main/java/com/vam/controller/MemberController.java b/VamPa/src/main/java/com/vam/controller/MemberController.java index 6a84b49..a035025 100644 --- a/VamPa/src/main/java/com/vam/controller/MemberController.java +++ b/VamPa/src/main/java/com/vam/controller/MemberController.java @@ -192,6 +192,19 @@ public class MemberController { return "redirect:/main"; } + + /* 비동기방식 로그아웃 메서드 */ + @RequestMapping(value="logout.do", method=RequestMethod.POST) + @ResponseBody + public void logoutPOST(HttpServletRequest request) throws Exception{ + + logger.info("비동기 로그아웃 메서드 진입"); + + HttpSession session = request.getSession(); + + session.invalidate(); + + } diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/main.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/main.jsp index 87e3e0c..e625fc8 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/admin/main.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/admin/main.jsp @@ -5,8 +5,65 @@ Insert title here + + + + -

관리자 메인 페이지

+ +
+
+ +
+ +
+ +
+ 관리자 페이지 + +
+ +
+ +
+ + +
+
+
관리자 페이지 입니다.
+
+
+
+
+
+ \ No newline at end of file diff --git a/VamPa/src/main/webapp/WEB-INF/views/main.jsp b/VamPa/src/main/webapp/WEB-INF/views/main.jsp index 926400a..8373d46 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/main.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/main.jsp @@ -8,6 +8,10 @@ Welcome BookMall + @@ -28,7 +32,7 @@
  • 관리자 페이지
  • - 로그아웃 + 로그아웃
  • 마이룸 @@ -79,5 +83,22 @@ + + \ No newline at end of file diff --git a/VamPa/src/main/webapp/resources/css/admin/main.css b/VamPa/src/main/webapp/resources/css/admin/main.css new file mode 100644 index 0000000..5e7435b --- /dev/null +++ b/VamPa/src/main/webapp/resources/css/admin/main.css @@ -0,0 +1,110 @@ +@charset "UTF-8"; +*{ + margin: 0; + padding:0; +} +a{ + text-decoration: none; +} +ul{ + list-style: none; +} +/* 화면 전체 렙 */ +.wrapper{ + width: 100%; +} +/* content 랩 */ +.wrap{ + width : 1080px; + margin: auto; +} +/* 홈페이지 기능 네비 */ +.top_gnb_area{ + width: 100%; + height: 50px; + background-color: #f0f0f1; + position:relative; +} +.top_gnb_area .list{ + position: absolute; + top: 0px; + right: 0; + +} +.top_gnb_area .list li{ + list-style: none; + float : left; + padding: 13px 15px 0 10px; + font-weight: 900; + cursor: pointer; +} + +/* 관리제 페이지 상단 현페이지 정보 */ +.admin_top_wrap{ + height:110px; + line-height: 110px; + background-color: #5080bd; +} +.admin_top_wrap>span{ + margin-left: 30px; + display:inline-block; + color: white; + font-size: 50px; + font-weight: bolder; +} +/* 관리자 wrap(네비+컨텐츠) */ +.admin_wrap{ + + +} + +/* 관리자페이지 네비 영역 */ +.admin_navi_wrap{ + width: 20%; + height: 300px; + float:left; + height: 100%; +} +.admin_navi_wrap li{ + display: block; + height: 80px; + line-height: 80px; + text-align: center; +} +.admin_navi_wrap li a{ + display: block; + height: 100%; + width: 95%; + margin: 0 auto; + cursor: pointer; + font-size: 30px; + font-weight: bolder; +} +/* +.admin_list_01{ + background-color: #c8c8c8; +} */ + + +/* 관리자페이지 컨텐츠 영역 */ +.admin_content_wrap{ + width: 80%; + float:left; + height: 100%; + height: 700px; + +} +.admin_content_wrap div{ + margin-top: 280px; + text-align: center; + font-size: 50px; + font-weight: bolder; +} + + + + +/* float 속성 해제 */ +.clearfix{ + clear: both; +} \ No newline at end of file diff --git a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index cda9d83..34265e5 100644 --- a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Thu Jan 28 07:55:32 KST 2021 +#Mon Feb 01 03:03:47 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa m2e.projectName=VamPa groupId=com.vam diff --git a/VamPa_MySQL/src/main/java/com/vam/controller/MemberController.java b/VamPa_MySQL/src/main/java/com/vam/controller/MemberController.java index 683994b..f9b30c9 100644 --- a/VamPa_MySQL/src/main/java/com/vam/controller/MemberController.java +++ b/VamPa_MySQL/src/main/java/com/vam/controller/MemberController.java @@ -193,5 +193,18 @@ public class MemberController { } - + /* 비동기방식 로그아웃 메서드 */ + @RequestMapping(value="logout.do", method=RequestMethod.POST) + @ResponseBody + public void logoutPOST(HttpServletRequest request) throws Exception{ + + logger.info("비동기 로그아웃 메서드 진입"); + + HttpSession session = request.getSession(); + + session.invalidate(); + + } + + } diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/main.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/main.jsp index 22b4381..e625fc8 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/main.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/main.jsp @@ -5,8 +5,65 @@ Insert title here + + + + -

    관리자 페이지

    + +
    +
    + +
    + +
    + +
    + 관리자 페이지 + +
    + +
    + +
    + + +
    +
    +
    관리자 페이지 입니다.
    +
    +
    +
    +
    +
    + \ No newline at end of file diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/main.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/main.jsp index 926400a..8373d46 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/main.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/main.jsp @@ -8,6 +8,10 @@ Welcome BookMall + @@ -28,7 +32,7 @@
  • 관리자 페이지
  • - 로그아웃 + 로그아웃
  • 마이룸 @@ -79,5 +83,22 @@ + + \ No newline at end of file diff --git a/VamPa_MySQL/src/main/webapp/resources/css/admin/main.css b/VamPa_MySQL/src/main/webapp/resources/css/admin/main.css new file mode 100644 index 0000000..5e7435b --- /dev/null +++ b/VamPa_MySQL/src/main/webapp/resources/css/admin/main.css @@ -0,0 +1,110 @@ +@charset "UTF-8"; +*{ + margin: 0; + padding:0; +} +a{ + text-decoration: none; +} +ul{ + list-style: none; +} +/* 화면 전체 렙 */ +.wrapper{ + width: 100%; +} +/* content 랩 */ +.wrap{ + width : 1080px; + margin: auto; +} +/* 홈페이지 기능 네비 */ +.top_gnb_area{ + width: 100%; + height: 50px; + background-color: #f0f0f1; + position:relative; +} +.top_gnb_area .list{ + position: absolute; + top: 0px; + right: 0; + +} +.top_gnb_area .list li{ + list-style: none; + float : left; + padding: 13px 15px 0 10px; + font-weight: 900; + cursor: pointer; +} + +/* 관리제 페이지 상단 현페이지 정보 */ +.admin_top_wrap{ + height:110px; + line-height: 110px; + background-color: #5080bd; +} +.admin_top_wrap>span{ + margin-left: 30px; + display:inline-block; + color: white; + font-size: 50px; + font-weight: bolder; +} +/* 관리자 wrap(네비+컨텐츠) */ +.admin_wrap{ + + +} + +/* 관리자페이지 네비 영역 */ +.admin_navi_wrap{ + width: 20%; + height: 300px; + float:left; + height: 100%; +} +.admin_navi_wrap li{ + display: block; + height: 80px; + line-height: 80px; + text-align: center; +} +.admin_navi_wrap li a{ + display: block; + height: 100%; + width: 95%; + margin: 0 auto; + cursor: pointer; + font-size: 30px; + font-weight: bolder; +} +/* +.admin_list_01{ + background-color: #c8c8c8; +} */ + + +/* 관리자페이지 컨텐츠 영역 */ +.admin_content_wrap{ + width: 80%; + float:left; + height: 100%; + height: 700px; + +} +.admin_content_wrap div{ + margin-top: 280px; + text-align: center; + font-size: 50px; + font-weight: bolder; +} + + + + +/* float 속성 해제 */ +.clearfix{ + clear: both; +} \ No newline at end of file diff --git a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index 634b847..509bcaa 100644 --- a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Thu Jan 28 08:32:01 KST 2021 +#Mon Feb 01 03:03:47 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa_MySQL m2e.projectName=VamPa_MySQL groupId=com.vam