- Spring Boot 2.0 Cookbook(Second Edition)
- Alex Antonov
- 52字
- 2021-06-24 19:24:39
Scheduling executors
Earlier in this chapter, we discussed how the command-line runners can be used as a place to start the scheduled executor thread pools to run the worker threads in intervals. While that is certainly a possibility, Spring provides you with a more concise configuration to achieve the same goal: @EnableScheduling.