Does spring @Scheduled annotated methods runs on different threads?

前端 未结 8 2361
时光取名叫无心
时光取名叫无心 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:29

    UPDATE 2019

    There is also a property you can set in your application properties file that increases the pool size:

    spring.task.scheduling.pool.size=10

    Seems to be there since Spring Boot 2.1.0.

提交回复
热议问题