我使用Spring @Scheduled注释创建了任务,但由于某种原因,它执行任务两次.我的Spring Framework版本是3.0.2.
@Service public class ReportService { @Scheduled(fixedDelay=1000 * 60 * 60* 24) @Transactional public void dailyReportTask() { ... code here ... } }
@H_502_8@这是我的XML:
@H_502_8@
最佳答案