From 9fe7518bc046a3ef48d94ec9576c5026992a6802 Mon Sep 17 00:00:00 2001 From: SeoJin Kim Date: Mon, 2 Nov 2020 21:15:48 +0900 Subject: [PATCH] =?UTF-8?q?[Spring][=EC=87=BC=ED=95=91=EB=AA=B0=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8][4]=20=EC=9D=B8=EC=A6=9D?= =?UTF-8?q?=EB=B2=88=ED=98=B8=20=EC=9D=B4=EB=A9=94=EC=9D=BC=20=EC=A0=84?= =?UTF-8?q?=EC=86=A1(1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 이메일 전송 환경 세팅 2. 인증번호 입력란 색상 변경 및 disabled 속성 추가 3. 이메일 전송 메서드 추가(자바스크립트) 4. Controller 메서드 추가 5. 테스트 --- VamPa/pom.xml | 16 +++++++++++++- .../com/vam/controller/MemberController.java | 13 ++++++++++++ .../webapp/WEB-INF/spring/root-context.xml | 20 ++++++++++++++++++ .../main/webapp/WEB-INF/views/member/join.jsp | 19 +++++++++++++++-- .../main/webapp/resources/css/member/join.css | 6 ++++++ .../maven/com.vam/controller/pom.properties | 2 +- .../META-INF/maven/com.vam/controller/pom.xml | 16 +++++++++++++- VamPa_MySQL/pom.xml | 14 +++++++++++++ .../com/vam/controller/MemberController.java | 12 +++++++++++ .../webapp/WEB-INF/spring/root-context.xml | 19 +++++++++++++++++ .../main/webapp/WEB-INF/views/member/join.jsp | 21 +++++++++++++++++-- .../main/webapp/resources/css/member/join.css | 6 ++++++ .../maven/com.vam/controller/pom.properties | 2 +- .../META-INF/maven/com.vam/controller/pom.xml | 14 +++++++++++++ 14 files changed, 172 insertions(+), 8 deletions(-) diff --git a/VamPa/pom.xml b/VamPa/pom.xml index 0a875cd..1631195 100644 --- a/VamPa/pom.xml +++ b/VamPa/pom.xml @@ -164,7 +164,21 @@ org.bgee.log4jdbc-log4j2 log4jdbc-log4j2-jdbc4 1.16 - + + + + + javax.mail + mail + 1.4.7 + + + + + org.springframework + spring-context-support + ${org.springframework-version} + + + + + + + + + + true + true + true + * + true + javax.net.ssl.SSLSocketFactory + + + + + diff --git a/VamPa/src/main/webapp/WEB-INF/views/member/join.jsp b/VamPa/src/main/webapp/WEB-INF/views/member/join.jsp index ea324be..ae1a56e 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/member/join.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/member/join.jsp @@ -51,8 +51,8 @@
-
- +
+
인증번호 전송 @@ -125,6 +125,21 @@ $('.id_input').on("propertychange change keyup paste input", function(){ });// function 종료 +/* 인증번호 이메일 전송 */ +$(".mail_check_button").click(function(){ + + var email = $(".mail_input").val(); // 입력한 이메일 + + $.ajax({ + + type:"GET", + url:"mailCheck?email=" + email + + }); + +}); + + diff --git a/VamPa/src/main/webapp/resources/css/member/join.css b/VamPa/src/main/webapp/resources/css/member/join.css index 789c47a..5c0ea10 100644 --- a/VamPa/src/main/webapp/resources/css/member/join.css +++ b/VamPa/src/main/webapp/resources/css/member/join.css @@ -156,6 +156,12 @@ width: 61%; float: left; } +#mail_check_input_box_false{ + background-color:#ebebe4; +} +#mail_check_input_box_true{ + background-color:white; +} .mail_check_input{ width:100%; height:100%; 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 a6491cf..467b397 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 -#Mon Aug 24 22:24:15 KST 2020 +#Mon Nov 02 21:12:33 KST 2020 version=1.0.0-BUILD-SNAPSHOT groupId=com.vam m2e.projectName=VamPa diff --git a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml index 0a875cd..1631195 100644 --- a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml +++ b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml @@ -164,7 +164,21 @@ org.bgee.log4jdbc-log4j2 log4jdbc-log4j2-jdbc4 1.16 - + + + + + javax.mail + mail + 1.4.7 + + + + + org.springframework + spring-context-support + ${org.springframework-version} + + + javax.mail + mail + 1.4.7 + + + + + org.springframework + spring-context-support + ${org.springframework-version} + + + + + + + + + + + true + true + true + * + true + javax.net.ssl.SSLSocketFactory + + + + diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/member/join.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/member/join.jsp index ea324be..0f0e26a 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/member/join.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/member/join.jsp @@ -51,8 +51,8 @@
-
- +
+
인증번호 전송 @@ -125,6 +125,23 @@ $('.id_input').on("propertychange change keyup paste input", function(){ });// function 종료 +/* 인증번호 이메일 전송 */ +$(".mail_check_button").click(function(){ + + var email = $(".mail_input").val(); // 입력한 이메일 + + $.ajax({ + + type:"GET", + url:"mailCheck?email=" + email + + }); + +}); + + + + diff --git a/VamPa_MySQL/src/main/webapp/resources/css/member/join.css b/VamPa_MySQL/src/main/webapp/resources/css/member/join.css index 789c47a..9bbfbb2 100644 --- a/VamPa_MySQL/src/main/webapp/resources/css/member/join.css +++ b/VamPa_MySQL/src/main/webapp/resources/css/member/join.css @@ -156,6 +156,12 @@ width: 61%; float: left; } +#mail_check_input_box_false{ + background-color:#ebebe4; +} +#mail_check_input_box_true{ + background-color:white; +} .mail_check_input{ width:100%; height:100%; 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 70702e4..7f81e8a 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 -#Mon Aug 24 22:24:15 KST 2020 +#Mon Nov 02 21:12:34 KST 2020 version=1.0.0-BUILD-SNAPSHOT groupId=com.vam m2e.projectName=VamPa_MySQL diff --git a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml index d0144a5..8edf3b4 100644 --- a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml +++ b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.xml @@ -166,6 +166,20 @@ 1 + + + javax.mail + mail + 1.4.7 + + + + + org.springframework + spring-context-support + ${org.springframework-version} + +