diff --git a/VamPa/src/main/java/com/vam/controller/AdminController.java b/VamPa/src/main/java/com/vam/controller/AdminController.java index 0d5a665..5961bd3 100644 --- a/VamPa/src/main/java/com/vam/controller/AdminController.java +++ b/VamPa/src/main/java/com/vam/controller/AdminController.java @@ -7,6 +7,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.mvc.support.RedirectAttributes; @@ -84,6 +85,20 @@ public class AdminController { return "redirect:/admin/authorManage"; } + + /* 작가 상세 페이지 */ + @GetMapping("/authorDetail") + public void authorGetInfoGET(int authorId, Criteria cri, Model model) throws Exception { + logger.info("authorDetail......." + authorId); + + /* 작가 관리 페이지 정보 */ + model.addAttribute("cri", cri); + + /* 선택 작가 정보 */ + model.addAttribute("authorInfo", authorService.authorGetDetail(authorId)); + + } + } diff --git a/VamPa/src/main/java/com/vam/mapper/AuthorMapper.java b/VamPa/src/main/java/com/vam/mapper/AuthorMapper.java index 75a22b7..8b25127 100644 --- a/VamPa/src/main/java/com/vam/mapper/AuthorMapper.java +++ b/VamPa/src/main/java/com/vam/mapper/AuthorMapper.java @@ -16,4 +16,7 @@ public interface AuthorMapper { /* 작가 총 수 */ public int authorGetTotal(Criteria cri); + /* 작가 상세 */ + public AuthorVO authorGetDetail(int authorId); + } diff --git a/VamPa/src/main/java/com/vam/service/AuthorService.java b/VamPa/src/main/java/com/vam/service/AuthorService.java index ab8493c..284ea9b 100644 --- a/VamPa/src/main/java/com/vam/service/AuthorService.java +++ b/VamPa/src/main/java/com/vam/service/AuthorService.java @@ -16,4 +16,7 @@ public interface AuthorService { /* 작가 총 수 */ public int authorGetTotal(Criteria cri) throws Exception; + /* 작가 상세 페이지 */ + public AuthorVO authorGetDetail(int authorId) throws Exception; + } diff --git a/VamPa/src/main/java/com/vam/service/AuthorServiceImpl.java b/VamPa/src/main/java/com/vam/service/AuthorServiceImpl.java index 6aeb2fe..cb5f44c 100644 --- a/VamPa/src/main/java/com/vam/service/AuthorServiceImpl.java +++ b/VamPa/src/main/java/com/vam/service/AuthorServiceImpl.java @@ -43,4 +43,11 @@ public class AuthorServiceImpl implements AuthorService { return authorMapper.authorGetTotal(cri); } + /* 작가 상세 페이지 */ + @Override + public AuthorVO authorGetDetail(int authorId) throws Exception { + log.info("authorGetDetail........" + authorId); + return authorMapper.authorGetDetail(authorId); + } + } diff --git a/VamPa/src/main/resources/com/vam/mapper/AuthorMapper.xml b/VamPa/src/main/resources/com/vam/mapper/AuthorMapper.xml index a48cbe7..b6a306d 100644 --- a/VamPa/src/main/resources/com/vam/mapper/AuthorMapper.xml +++ b/VamPa/src/main/resources/com/vam/mapper/AuthorMapper.xml @@ -17,7 +17,7 @@ - + + + + \ No newline at end of file diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/authorDetail.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/authorDetail.jsp new file mode 100644 index 0000000..68997eb --- /dev/null +++ b/VamPa/src/main/webapp/WEB-INF/views/admin/authorDetail.jsp @@ -0,0 +1,118 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> + + + + +Insert title here + + + + + + <%@include file="../includes/admin/header.jsp" %> +
+
작가 상세
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ "> +
+
+
+
+ +
+
+ "> +
+
+
+ + +
+
+
+ +
+ + + + +
+ <%@include file="../includes/admin/footer.jsp" %> + + + + + \ No newline at end of file diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/authorManage.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/authorManage.jsp index 0993abb..22976b6 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/admin/authorManage.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/admin/authorManage.jsp @@ -37,7 +37,11 @@ - + + + + + @@ -157,6 +161,17 @@ $("#searchForm button").on("click", function(e){ }); +/* 작가 상세 페이지 이동 */ +$(".move").on("click", function(e){ + + e.preventDefault(); + + moveForm.append(""); + moveForm.attr("action", "/admin/authorDetail"); + moveForm.submit(); + +}); + diff --git a/VamPa/src/main/webapp/resources/css/admin/authorDetail.css b/VamPa/src/main/webapp/resources/css/admin/authorDetail.css new file mode 100644 index 0000000..3a5b40b --- /dev/null +++ b/VamPa/src/main/webapp/resources/css/admin/authorDetail.css @@ -0,0 +1,239 @@ +@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; + margin-bottom:15px; +} +.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_navi_wrap li a:link {color: black;} +.admin_navi_wrap li a:visited {color: black;} +.admin_navi_wrap li a:active {color: black;} +.admin_navi_wrap li a:hover {color: black;} + +.admin_list_04{ + background-color: #c8c8c8; +} + + +/* 관리자페이지 컨텐츠 영역 */ +.admin_content_wrap{ + width: 80%; + float:left; + min-height:700px; +} +/* 관리자 컨텐츠 제목 영역 */ +.admin_content_subject{ + font-size: 40px; + font-weight: bolder; + padding-left: 15px; + background-color: #6AAFE6; + height: 80px; + line-height: 80px; + color: white; +} +/* 관리자 컨텐츠 메인 영역 */ +.form_section{ + width: 95%; + margin-left: 2%; + margin-top: 20px; + border: 1px solid #dbdde2; + background-color: #efefef; +} +.form_section_title{ + padding: 20px 35px; +} +.form_section_title label{ + display: block; + font-size: 20px; + font-weight: 800; +} +.form_section_content{ + padding: 20px 35px; + border-top: 1px solid #dbdde2; +} +.form_section_content input{ + width: 98%; + height: 25px; + font-size: 20px; + padding: 5px 1%; +} +.form_section_content textarea{ + width: 98%; + height: 170px; + font-size: 20px; +} +.form_section_content select{ + width: 98%; + height: 35px; + font-size: 20px; + text-align-last: center; +} +.input_block{ + background-color:#f9f9f9; +} + + +/* 버튼 영역 */ +.btn_section{ + text-align: center; + margin: 80px 0; +} +.btn{ + min-width: 180px; + padding: 4px 30px; + font-size: 25px; + font-weight: 600; + line-height: 40px; +} +.modify_btn{ + background-color: #b8d3e8; + margin-left:15px; +} + + + + +/* footer navai 영역 */ +.footer_nav{ + width:100%; + height:50px; +} +.footer_nav_container{ + width: 100%; + height: 100%; + background-color:#8EC0E4; +} +.footer_nav_container>ul{ + font-weight : bold; + float:left; + list-style:none; + position:relative; + padding-top:10px; + line-height: 27px; + font-family: dotum; + margin-left: 10px; +} +.footer_nav_container>ul>li{ + display:inline; + width: 45px; + height: 19px; + padding: 10px 9px 0 10px; +} +.footer_nav_container>ul>span{ + margin: 0 4px; +} +/* footer 영역 */ +.footer{ + width:100%; + height:130px; + background-color:#D4DFE6; + padding-bottom : 50px; +} +.footer_container{ + width: 100%; + height: 100%; + margin: auto; +} +.footer_left>img { + width: 150%; + height: 130px; + margin-left: -20px; + margin-top: -12px; +} +.footer_left{ + float :left; + width: 170px; + margin-left: 20px; + margin-top : 30px; + +} +.footer_right{ + float :left; + width: 680px; + margin-left: 70px; + margin-top : 30px; +} + + + + +/* float 속성 해제 */ +.clearfix{ + clear: both; +} \ No newline at end of file diff --git a/VamPa/src/main/webapp/resources/css/admin/authorManage.css b/VamPa/src/main/webapp/resources/css/admin/authorManage.css index bcfb2fa..7e09c9b 100644 --- a/VamPa/src/main/webapp/resources/css/admin/authorManage.css +++ b/VamPa/src/main/webapp/resources/css/admin/authorManage.css @@ -137,8 +137,11 @@ ul{ .th_column_5{ width:140px; } - - +/* 작가 상세 페이지 이동 태그 */ +.author_table a{ + color:#1088ed; + font-weight: 500; +} /* 검색 영역 */ diff --git a/VamPa/src/test/java/com/vam/mapper/AuthorMapperTests.java b/VamPa/src/test/java/com/vam/mapper/AuthorMapperTests.java index e679dce..fd88c48 100644 --- a/VamPa/src/test/java/com/vam/mapper/AuthorMapperTests.java +++ b/VamPa/src/test/java/com/vam/mapper/AuthorMapperTests.java @@ -52,6 +52,7 @@ public class AuthorMapperTests { */ /* 작가 총 수 */ + /* @Test public void authorGetTotalTest() throws Exception{ @@ -64,6 +65,19 @@ public class AuthorMapperTests { } + */ + + /* 작가 상세 페이지 */ + @Test + public void authorGetDetailTest() { + + int authorId = 30; + + AuthorVO author = mapper.authorGetDetail(authorId); + + System.out.println("author......." + author); + + } diff --git a/VamPa/src/test/java/com/vam/service/AuthorServiceTests.java b/VamPa/src/test/java/com/vam/service/AuthorServiceTests.java index 03fb68b..03ba087 100644 --- a/VamPa/src/test/java/com/vam/service/AuthorServiceTests.java +++ b/VamPa/src/test/java/com/vam/service/AuthorServiceTests.java @@ -35,7 +35,8 @@ public class AuthorServiceTests { */ /* 작가 목록 구현 */ - @Test + /* + @Test public void authorGetListTest() throws Exception{ Criteria cri = new Criteria(3, 10); @@ -47,5 +48,16 @@ public class AuthorServiceTests { } } + */ + + /*작가 상세 페이지*/ + @Test + public void authorGetDetailTest() throws Exception{ + + int authorId = 20; + + System.out.println("author......" + service.authorGetDetail(authorId)); + + } } diff --git a/VamPa/target/classes/com/vam/mapper/AuthorMapper.xml b/VamPa/target/classes/com/vam/mapper/AuthorMapper.xml index a48cbe7..b6a306d 100644 --- a/VamPa/target/classes/com/vam/mapper/AuthorMapper.xml +++ b/VamPa/target/classes/com/vam/mapper/AuthorMapper.xml @@ -17,7 +17,7 @@ - + + + + \ 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 1ad8164..4c8270b 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 -#Wed Mar 10 06:27:33 KST 2021 +#Mon Mar 15 03:58:10 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/AdminController.java b/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java index 2f0d6ad..d4c0a4b 100644 --- a/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java +++ b/VamPa_MySQL/src/main/java/com/vam/controller/AdminController.java @@ -7,6 +7,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.mvc.support.RedirectAttributes; @@ -84,6 +85,20 @@ public class AdminController { return "redirect:/admin/authorManage"; } + + /* 작가 상세 페이지 */ + @GetMapping("/authorDetail") + public void authorGetInfoGET(int authorId, Criteria cri, Model model) throws Exception { + + logger.info("authorDetail......." + authorId); + + /* 작가 관리 페이지 정보 */ + model.addAttribute("cri", cri); + + /* 선택 작가 정보 */ + model.addAttribute("authorInfo", authorService.authorGetDetail(authorId)); + + } } diff --git a/VamPa_MySQL/src/main/java/com/vam/mapper/AuthorMapper.java b/VamPa_MySQL/src/main/java/com/vam/mapper/AuthorMapper.java index 2852b6c..dcb919d 100644 --- a/VamPa_MySQL/src/main/java/com/vam/mapper/AuthorMapper.java +++ b/VamPa_MySQL/src/main/java/com/vam/mapper/AuthorMapper.java @@ -14,6 +14,9 @@ public interface AuthorMapper { public List authorGetList(Criteria cri); /* 작가 총 수 */ - public int authorGetTotal(Criteria cri); + public int authorGetTotal(Criteria cri); + + /* 작가 상세 */ + public AuthorVO authorGetDetail(int authorId); } diff --git a/VamPa_MySQL/src/main/java/com/vam/service/AuthorService.java b/VamPa_MySQL/src/main/java/com/vam/service/AuthorService.java index e8ca9b7..1a222c1 100644 --- a/VamPa_MySQL/src/main/java/com/vam/service/AuthorService.java +++ b/VamPa_MySQL/src/main/java/com/vam/service/AuthorService.java @@ -16,4 +16,7 @@ public interface AuthorService { /* 작가 총 수 */ public int authorGetTotal(Criteria cri) throws Exception; + /* 작가 상세 페이지 */ + public AuthorVO authorGetDetail(int authorId) throws Exception; + } diff --git a/VamPa_MySQL/src/main/java/com/vam/service/AuthorServiceImpl.java b/VamPa_MySQL/src/main/java/com/vam/service/AuthorServiceImpl.java index 54266f5..594c9f6 100644 --- a/VamPa_MySQL/src/main/java/com/vam/service/AuthorServiceImpl.java +++ b/VamPa_MySQL/src/main/java/com/vam/service/AuthorServiceImpl.java @@ -43,4 +43,11 @@ public class AuthorServiceImpl implements AuthorService { return authorMapper.authorGetTotal(cri); } + /* 작가 상세 페이지 */ + @Override + public AuthorVO authorGetDetail(int authorId) throws Exception { + log.info("authorGetDetail........" + authorId); + return authorMapper.authorGetDetail(authorId); + } + } diff --git a/VamPa_MySQL/src/main/resources/com/vam/mapper/AuthorMapper.xml b/VamPa_MySQL/src/main/resources/com/vam/mapper/AuthorMapper.xml index 60e7b45..2cc5353 100644 --- a/VamPa_MySQL/src/main/resources/com/vam/mapper/AuthorMapper.xml +++ b/VamPa_MySQL/src/main/resources/com/vam/mapper/AuthorMapper.xml @@ -38,4 +38,12 @@ + + + + \ No newline at end of file diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorDetail.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorDetail.jsp new file mode 100644 index 0000000..68997eb --- /dev/null +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorDetail.jsp @@ -0,0 +1,118 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> + + + + +Insert title here + + + + + + <%@include file="../includes/admin/header.jsp" %> +
+
작가 상세
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ "> +
+
+
+
+ +
+
+ "> +
+
+
+ + +
+
+
+ +
+ + + + +
+ <%@include file="../includes/admin/footer.jsp" %> + + + + + \ No newline at end of file diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorManage.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorManage.jsp index 0993abb..22976b6 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorManage.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/authorManage.jsp @@ -37,7 +37,11 @@ - + + + + + @@ -157,6 +161,17 @@ $("#searchForm button").on("click", function(e){ }); +/* 작가 상세 페이지 이동 */ +$(".move").on("click", function(e){ + + e.preventDefault(); + + moveForm.append(""); + moveForm.attr("action", "/admin/authorDetail"); + moveForm.submit(); + +}); + diff --git a/VamPa_MySQL/src/main/webapp/resources/css/admin/authorDetail.css b/VamPa_MySQL/src/main/webapp/resources/css/admin/authorDetail.css new file mode 100644 index 0000000..3a5b40b --- /dev/null +++ b/VamPa_MySQL/src/main/webapp/resources/css/admin/authorDetail.css @@ -0,0 +1,239 @@ +@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; + margin-bottom:15px; +} +.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_navi_wrap li a:link {color: black;} +.admin_navi_wrap li a:visited {color: black;} +.admin_navi_wrap li a:active {color: black;} +.admin_navi_wrap li a:hover {color: black;} + +.admin_list_04{ + background-color: #c8c8c8; +} + + +/* 관리자페이지 컨텐츠 영역 */ +.admin_content_wrap{ + width: 80%; + float:left; + min-height:700px; +} +/* 관리자 컨텐츠 제목 영역 */ +.admin_content_subject{ + font-size: 40px; + font-weight: bolder; + padding-left: 15px; + background-color: #6AAFE6; + height: 80px; + line-height: 80px; + color: white; +} +/* 관리자 컨텐츠 메인 영역 */ +.form_section{ + width: 95%; + margin-left: 2%; + margin-top: 20px; + border: 1px solid #dbdde2; + background-color: #efefef; +} +.form_section_title{ + padding: 20px 35px; +} +.form_section_title label{ + display: block; + font-size: 20px; + font-weight: 800; +} +.form_section_content{ + padding: 20px 35px; + border-top: 1px solid #dbdde2; +} +.form_section_content input{ + width: 98%; + height: 25px; + font-size: 20px; + padding: 5px 1%; +} +.form_section_content textarea{ + width: 98%; + height: 170px; + font-size: 20px; +} +.form_section_content select{ + width: 98%; + height: 35px; + font-size: 20px; + text-align-last: center; +} +.input_block{ + background-color:#f9f9f9; +} + + +/* 버튼 영역 */ +.btn_section{ + text-align: center; + margin: 80px 0; +} +.btn{ + min-width: 180px; + padding: 4px 30px; + font-size: 25px; + font-weight: 600; + line-height: 40px; +} +.modify_btn{ + background-color: #b8d3e8; + margin-left:15px; +} + + + + +/* footer navai 영역 */ +.footer_nav{ + width:100%; + height:50px; +} +.footer_nav_container{ + width: 100%; + height: 100%; + background-color:#8EC0E4; +} +.footer_nav_container>ul{ + font-weight : bold; + float:left; + list-style:none; + position:relative; + padding-top:10px; + line-height: 27px; + font-family: dotum; + margin-left: 10px; +} +.footer_nav_container>ul>li{ + display:inline; + width: 45px; + height: 19px; + padding: 10px 9px 0 10px; +} +.footer_nav_container>ul>span{ + margin: 0 4px; +} +/* footer 영역 */ +.footer{ + width:100%; + height:130px; + background-color:#D4DFE6; + padding-bottom : 50px; +} +.footer_container{ + width: 100%; + height: 100%; + margin: auto; +} +.footer_left>img { + width: 150%; + height: 130px; + margin-left: -20px; + margin-top: -12px; +} +.footer_left{ + float :left; + width: 170px; + margin-left: 20px; + margin-top : 30px; + +} +.footer_right{ + float :left; + width: 680px; + margin-left: 70px; + margin-top : 30px; +} + + + + +/* float 속성 해제 */ +.clearfix{ + clear: both; +} \ No newline at end of file diff --git a/VamPa_MySQL/src/main/webapp/resources/css/admin/authorManage.css b/VamPa_MySQL/src/main/webapp/resources/css/admin/authorManage.css index bcfb2fa..7e09c9b 100644 --- a/VamPa_MySQL/src/main/webapp/resources/css/admin/authorManage.css +++ b/VamPa_MySQL/src/main/webapp/resources/css/admin/authorManage.css @@ -137,8 +137,11 @@ ul{ .th_column_5{ width:140px; } - - +/* 작가 상세 페이지 이동 태그 */ +.author_table a{ + color:#1088ed; + font-weight: 500; +} /* 검색 영역 */ diff --git a/VamPa_MySQL/src/test/java/com/vam/mapper/AuthorMapperTests.java b/VamPa_MySQL/src/test/java/com/vam/mapper/AuthorMapperTests.java index 83f6a8e..799b69c 100644 --- a/VamPa_MySQL/src/test/java/com/vam/mapper/AuthorMapperTests.java +++ b/VamPa_MySQL/src/test/java/com/vam/mapper/AuthorMapperTests.java @@ -52,6 +52,7 @@ public class AuthorMapperTests { */ /* 작가 총 수 */ + /* @Test public void authorGetTotalTest() throws Exception{ @@ -64,5 +65,19 @@ public class AuthorMapperTests { } + */ + + /* 작가 상세 페이지 */ + @Test + public void authorGetDetailTest() { + + int authorId = 30; + + AuthorVO author = mapper.authorGetDetail(authorId); + + System.out.println("author......." + author); + + } + } diff --git a/VamPa_MySQL/src/test/java/com/vam/service/AuthorServiceTests.java b/VamPa_MySQL/src/test/java/com/vam/service/AuthorServiceTests.java index a901887..37c8f08 100644 --- a/VamPa_MySQL/src/test/java/com/vam/service/AuthorServiceTests.java +++ b/VamPa_MySQL/src/test/java/com/vam/service/AuthorServiceTests.java @@ -11,6 +11,8 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import com.vam.model.AuthorVO; import com.vam.model.Criteria; +import jdk.internal.org.jline.utils.Log; + @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration("file:src/main/webapp/WEB-INF/spring/root-context.xml") public class AuthorServiceTests { @@ -18,7 +20,7 @@ public class AuthorServiceTests { /*AuthoreService 의존성 주입*/ @Autowired private AuthorService service; - + /* @Test public void authorEnrollTest() throws Exception { @@ -30,10 +32,12 @@ public class AuthorServiceTests { service.authorEnroll(author); - } + } + */ /* 작가 목록 구현 */ - @Test + /* + @Test public void authorGetListTest() throws Exception{ Criteria cri = new Criteria(3, 10); @@ -44,6 +48,18 @@ public class AuthorServiceTests { System.out.println("list" + i + "......." + list.get(i)); } - } + } + */ + + /*작가 상세 페이지*/ + @Test + public void authorGetDetailTest() throws Exception{ + + int authorId = 20; + + Log.info("author......" + service.authorGetDetail(authorId)); + + } + } diff --git a/VamPa_MySQL/target/classes/com/vam/mapper/AuthorMapper.xml b/VamPa_MySQL/target/classes/com/vam/mapper/AuthorMapper.xml index 60e7b45..2cc5353 100644 --- a/VamPa_MySQL/target/classes/com/vam/mapper/AuthorMapper.xml +++ b/VamPa_MySQL/target/classes/com/vam/mapper/AuthorMapper.xml @@ -38,4 +38,12 @@ + + + + \ 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 8afc902..0fe0a70 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 -#Wed Mar 10 06:27:34 KST 2021 +#Mon Mar 15 03:58:12 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project\\VamPa_MySQL m2e.projectName=VamPa_MySQL groupId=com.vam