Springboot使用@Async失效

1、springboot启动类加上@EnableAsync注解

 

  2、异步执行的方法需单独写在一个类中

 

posted @ 2020-06-08 11:55  昵称不好起啊  阅读(533)  评论(0)    收藏  举报