springboot async

1、在springbootboot启动类加注解

 2、具体执行

 3、调用:

4、如果需要返回值,可以用Future做返回值处理:

原文地址:https://www.cnblogs.com/notchangeworld/p/13397645.html