摘要: 1 在Spring Boot启动类上加@EnableAsync注解,开启异步。2 在执行异步方法的类上加@Component注解,使该类被扫描到。3 在需要一步的方法上加@Async注解,使之成为异步方法。使用场景:发短信、发邮件、App消息推送等。 ... 阅读全文
posted @ 2018-05-16 16:41 _chenyl 阅读(36) 评论(0) 推荐(0) 编辑