报错Could not connect to SMTP host: smtp.qq.com, port: 465, response: -1
修改applicationContext_mail.xml文件
端口号改为:587;

报错Authentication failed; nested exception is javax.mail.AuthenticationFailedException
邮箱密码是开通pop3/smtp服务时所给的授权码,而不是你注册邮箱时的真实密码
改一下密码为授权码就可以了