Spring 3: How to call @Async annotated methods from the TaskExecutor

后端 未结 4 1168
说谎
说谎 2020-12-31 09:15

I\'m new to asynchronous task execution in Spring, so please forgive me if this sounds like a silly question.

I read that @Async annotation is introduced from Sprin

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 09:53

    In the config file, one should mention an annotation driven task with the thread pool name and method with @Async(pool name) will be executed as part of that pool. This creates a proxy class for the one which has @Async annotation and executes it for every thread.

提交回复
热议问题