原因是 再定时任务的类中 还有@Component 注解,删掉@Component 注解即可
@Scheduled 定时任务执行两次的错误
最新推荐文章于 2024-01-04 17:36:00 发布
原因是 再定时任务的类中 还有@Component 注解,删掉@Component 注解即可