package com.kiisoo.ic.job.count; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; import org.springframework.web.bind.annotation.RequestParam; @Service @Slf4j public class SyncCountJobService { @Autowired private CustomerCountJob customerDataJob; @Scheduled(cron = "0 0/15 9 * * ?") public void getCustomerInfo(){ try { customerDataJob.handle(false); }catch (Exception e){ log.error("",e); } } }