官术网_书友最值得收藏!

How it works...

@EnableScheduling, as many other annotations that we have discussed and will discuss in this book, is not a Spring Boot; it is a Spring Context module annotation. Similar to the @SpringBootApplication and @EnableAutoConfiguration annotations, this is a meta-annotation and internally imports  SchedulingConfiguration via the @Import(SchedulingConfiguration.class) instruction, which can be found inside ScheduledAnnotationBeanPostProcessor that will be created by the imported configuration and will scan the declared Spring beans for the presence of the @Scheduled annotations. For every annotated method without arguments, the appropriate executor thread pool will be created. It will manage the scheduled invocation of the annotated method.

主站蜘蛛池模板: 霍林郭勒市| 七台河市| 涿州市| 永德县| 衡阳市| 安远县| 枣强县| 略阳县| 鹿邑县| 贵南县| 庆云县| 耿马| 虞城县| 沁水县| 南澳县| 尚志市| 丁青县| 泾阳县| 寿阳县| 安国市| 高清| 常山县| 灌南县| 炎陵县| 东方市| 奎屯市| 新源县| 台东市| 湟源县| 嘉义市| 岑巩县| 修文县| 阜新| 来凤县| 靖宇县| 永寿县| 丽水市| 屏山县| 东乌珠穆沁旗| 东城区| 广饶县|