white knight

导航

 
@Configuration
@EnableAsync
@EnableScheduling
public class CronConfig {
    @Autowired
    private ApiService apiService;

    @Scheduled(cron="0/5 * * * * ?")
    public void wareLoadOut() {
        apiService.wareLoadOut();
    }

    @Scheduled(cron="0/5 * * * * ?")
    public void wareDelivery() {
        apiService.wareDelivery();
    }
}
posted on 2018-03-26 13:50  white knight  阅读(130)  评论(0编辑  收藏  举报