springboot实现邮箱接收验证码
记录:使用邮箱接收验证码登录代替手机号接收验证码登录原因:手机号接收验证码要钱public class SendMailUtils { @Resource JavaMailSenderImpl javaMailSender; public void sendEmailCode(String targetEmail, String authCode) { SimpleMailMessage mailMessage =new SimpleMailMessage();