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