SpringBoot
曾经小小好少年
这个作者很懒,什么都没留下…
展开
-
Spring Boot发邮件功能
发邮件(qq邮件为例)1.在qq邮箱中找到 设置-账户-开启STMP服务,拿到客户端配置码2.在yaml文件中配置spring:mail:host: smtp.qq.comusername: 11111111@qq.compassword: 刚才拿到的配置码# qq独有的开启加密验证properties:mail:smtl:ssl: enable3. @Autowiredprivate JavaMailSenderImpl javaMailSender; // 发送原创 2021-03-14 00:31:25 · 226 阅读 · 0 评论 -
SpringBoot学习总结--异步处理
SpringBoot中异步处理1.在启动类上加@EnableAsync2.在服务层的异步方法上加@Async这样在控制层调用服务层的该方法时,就会开启一个线程异步去处理原创 2021-03-14 00:12:36 · 72 阅读 · 0 评论