Does spring @Scheduled annotated methods runs on different threads?

前端 未结 8 2375
时光取名叫无心
时光取名叫无心 2020-11-30 01:19

I have several methods annotated with @Scheduled(fixedDelay=10000).

In the application context, I have this annotation-driven setup:

<         


        
8条回答
  •  广开言路
    2020-11-30 01:36

    default spring using a single thread for schedule task. you can using @Configuration for class implements SchedulingConfigurer . referce: https://crmepham.github.io/spring-boot-multi-thread-scheduling/

提交回复
热议问题