摘要: 发送纯文本邮件 一、在pom.xml中添加邮件服务的依赖启动器 <!--邮件服务依赖启动器--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifa 阅读全文
posted @ 2019-12-16 11:18 红尘年少 阅读(685) 评论(0) 推荐(1)
摘要: 一、添加ScheduledTaskService服务类 package com.uos.schedule.service; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.s 阅读全文
posted @ 2019-12-16 09:43 红尘年少 阅读(1426) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/my-program-life/p/12047396.html Spring Boot任务管理之无返回值异步任务调用 一、在OwnAsynService基础上添加 package com.uos.schedule.service; import org 阅读全文
posted @ 2019-12-16 09:28 红尘年少 阅读(601) 评论(1) 推荐(0)
摘要: 一、service层 package com.uos.schedule.service; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; /* 阅读全文
posted @ 2019-12-16 09:16 红尘年少 阅读(520) 评论(0) 推荐(0)