Is using CompletableFuture.runAsync() and annotating the method with @Async same?

前端 未结 0 1360
旧时难觅i
旧时难觅i 2020-12-14 18:20

I have to run a method asynchronously in a spring-boot application. I can annotate with @Async or I can put it inside the CompletableFuture.runAsync() method. Do both have t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题