@Test public void testZhaoDaoNvPengYou() throws InterruptedException { demoService.zhaoDaoNvPengYou(1, 2); Thread.sleep(1000); }
@Async public Integer zhaoDaoNvPengYou(Integer a, Integer b) { throw new RuntimeException("程序员不需要女朋友"); }
DemoService { @Async public Integer zhaoDaoNvPengYou(Integer a, Integer b) { throw new RuntimeException("程序员不需要女朋友"); } }
DemoService { @Async public Integer zhaoDaoNvPengYou(Integer a, Integer b) { throw new RuntimeException("程序员不需要女朋友"); }  }
DemoService { @Async public Integer zhaoDaoNvPengYou(Integer a, Integer b) { throw new RuntimeException("程序员不需要女朋友"); }  @Async Integer execute01Async(); @Async Integer execute02Async(); @Async Future<Integer> execute01AsyncWithFuture(); @Async Future<Integer> execute02AsyncWithFuture(); @Async ListenableFuture<Integer> execute01AsyncWithListenableFuture(); Integer execute01(); Integer execute02(); @Async Integer zhaoDaoNvPengYou(Integer a, Integer b); }
DemoService { @Async public Integer zhaoDaoNvPengYou(Integer a, Integer b) { throw new RuntimeException("程序员不需要女朋友"); }  @Async Integer execute01Async(); @Async Integer execute02Async(); @Async Future<Integer> execute01AsyncWithFuture(); @Async Future<Integer> execute02AsyncWithFuture(); @Async ListenableFuture<Integer> execute01AsyncWithListenableFuture(); Integer execute01(); Integer execute02(); @Async Integer zhaoDaoNvPengYou(Integer a, Integer b);  }