1. 이메일 전송 환경 세팅 2. 인증번호 입력란 색상 변경 및 disabled 속성 추가 3. 이메일 전송 메서드 추가(자바스크립트) 4. Controller 메서드 추가 5. 테스트
53 lines
2.7 KiB
XML
53 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:mybatis-spring="http://mybatis.org/schema/mybatis-spring"
|
|
xsi:schemaLocation="http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring-1.2.xsd
|
|
http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">
|
|
|
|
<bean id="hikariConfig" class="com.zaxxer.hikari.HikariConfig">
|
|
<!-- <property name="driverClassName" value="com.mysql.cj.jdbc.Driver"></property>
|
|
<property name="jdbcUrl" value="jdbc:mysql://localhost:3306/ksj?serverTimezone=Asia/Seoul"></property> -->
|
|
<property name="driverClassName" value="net.sf.log4jdbc.sql.jdbcapi.DriverSpy"></property>
|
|
<property name="jdbcUrl" value="jdbc:log4jdbc:mysql://localhost:3306/blog?serverTimezone=Asia/Seoul"></property>
|
|
<property name="username" value="root"></property>
|
|
<property name="password" value="1234"></property>
|
|
</bean>
|
|
|
|
<bean id="datasource" class="com.zaxxer.hikari.HikariDataSource" destroy-method="close">
|
|
<constructor-arg ref="hikariConfig"></constructor-arg>
|
|
</bean>
|
|
|
|
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
|
|
<property name="dataSource" ref="datasource"></property>
|
|
</bean>
|
|
|
|
<!-- navermail설정 -->
|
|
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
|
|
<property name="host" value="smtp.naver.com"/> <!-- 메이서버 호스트 -->
|
|
<property name="port" value="465"/> <!-- 메이서버 포트번호 -->
|
|
<property name="username" value="your_email"/> <!-- 자신의 이메일 아이디 -->
|
|
<property name="password" value="your_password"/> <!-- 자신의 비밀번호 -->
|
|
<!-- 보안연결 SSL과 관련된 설정 -->
|
|
<property name="javaMailProperties">
|
|
<props>
|
|
<prop key="mail.smtp.auth">true</prop>
|
|
<prop key="mail.smtp.starttls.enable">true</prop>
|
|
<prop key="mail.smtps.checkserveridentity">true</prop>
|
|
<prop key="mail.smtps.ssl.trust">*</prop>
|
|
<prop key="mail.debug">true</prop>
|
|
<prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>
|
|
</props>
|
|
</property>
|
|
</bean>
|
|
|
|
<context:component-scan base-package="com.vam.sample"></context:component-scan>
|
|
|
|
<mybatis-spring:scan base-package="com.vam.mapper"/>
|
|
<context:component-scan base-package="com.vam.model"></context:component-scan>
|
|
<context:component-scan base-package="com.vam.service"></context:component-scan>
|
|
|
|
</beans>
|