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

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.

主站蜘蛛池模板: 洞口县| 梁平县| 广宗县| 图们市| 卓尼县| 莆田市| 罗定市| 丰顺县| 宝鸡市| 丰顺县| 长乐市| 寿阳县| 九江市| 枞阳县| 徐水县| 庄河市| 苏尼特右旗| 苏尼特右旗| 永州市| 雷州市| 玉林市| 闽侯县| 山阴县| 沙湾县| 上林县| 常熟市| 台南县| 屏山县| 黑河市| 略阳县| 当阳市| 延安市| 松溪县| 长乐市| 德阳市| 和林格尔县| 香格里拉县| 即墨市| 靖边县| 阜城县| 平乐县|