Spring + Redis를 이용한 Email 인증 구현
·
spring & java
Google SMTP는 구글에서 무료로 메일을 발송할 수 있도록 제공해주는 서버이다.이메일 인증 코드를 전송해주는 API를 위해 Google SMTP를 이용할 것이다. SMTP란?단순 메일 전송 프로토콜을 의미하며, 인터넷에서 이메일을 보내기 위한 표준 통신 규약이다. 2단계 인증 후 앱 비밀번호를 설정한다. 1. application.properties 설정spring.mail.host=smtp.gmail.comspring.mail.port=587spring.mail.username=spring.mail.password=spring.mail.properties.mail.smtp.auth=truespring.mail.properties.mail.smtp.starttls.enable=truesprin..