摘要: Spring中通过任务执行器TaskExecutor来实现多线程和并发编程。使用ThreadPoolTaskExecutor可实现一个基于线程池的TaskExecutor。因为实际开发中任务一般是异步的(即非阻塞的),所以要在配置类中@EnableAsync ,并在实际执行的Bean方法中使用@As 阅读全文
posted @ 2019-06-17 11:17 小乔er 阅读(3935) 评论(0) 推荐(0) 编辑