2020年5月11日

摘要: 项目中经常使用邮件发送提醒功能,比如说更新安全机制,发送邮件通知用户等 一、简单邮件发送 导入依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</arti 阅读全文

posted @ 2020-05-11 01:32 FLGB 阅读(266) 评论(0) 推荐(0)

摘要: 在项目开发过程中,经常会使用到定时任务(跑批),springboot默认已经实现了,只需要添加相应的注解就可以实现 在启动类上加入注解,开启定时任务 @SpringBootApplication @EnableScheduling public class App { public static v 阅读全文

posted @ 2020-05-11 00:04 FLGB 阅读(338) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3