Home  >  Q&A  >  body text

java - Why my @Async not working ?

我创建了一个简单的 Groovy File 来测试 Spring 的 Async 注解是否真正运行在其他线程中

但是结果是并没有其效果,代码仍然运行在当前线程中

这是我的代码

黄舟黄舟2743 days ago684

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:54:19

    Okay, it’s still a question of class agents. It’s so confusing

    reply
    0
  • Cancelreply