xxl-job的使用

壹:

引入依赖

<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>版本号</version>
</dependency>
贰:

在配置文件配置属性:

叁:
使用@Configuration加载配置到spring中
肆:
创建handler类并使用注解JobHandler
重写方法进行调用

伍:
最后并且关键的一步:
打开job配置地址,测试完成后启动定时任务.



猜你喜欢

转载自www.cnblogs.com/tanzhijian136/p/12182418.html