springboot项目经过qq邮箱发送邮件

参考:http://www.javashuo.com/article/p-ewuthhjf-ds.htmlhtml 开启qq邮箱账户设置中的smtp服务,并记下受权码(这个是以后配置用的密码) 在application.properties中引入依赖 注入JavaMailSender实例并发送邮件 引入依赖: application.propertiesjava spring.mail.host=
相关文章
相关标签/搜索