Springboot多线程定时任务

第一须要配置启动类注解开启定时任务功能(开启才可使用) @EnableScheduling public class Application {...} 第二新建类AsyncConfig,代码以下 import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Con
相关文章
相关标签/搜索