| Line 5... |
Line 5... |
| 5 |
import com.smartdukaan.cron.properties.WriteToPropertiesFile;
|
5 |
import com.smartdukaan.cron.properties.WriteToPropertiesFile;
|
| 6 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
6 |
import com.smartdukaan.cron.scheduled.leadsync.LeadSyncRunner;
|
| 7 |
import org.apache.logging.log4j.LogManager;
|
7 |
import org.apache.logging.log4j.LogManager;
|
| 8 |
import org.apache.logging.log4j.Logger;
|
8 |
import org.apache.logging.log4j.Logger;
|
| 9 |
import org.springframework.beans.factory.annotation.Autowired;
|
9 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 10 |
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
- |
|
| 11 |
import org.springframework.scheduling.annotation.Scheduled;
|
10 |
import org.springframework.scheduling.annotation.Scheduled;
|
| 12 |
import org.springframework.stereotype.Component;
|
11 |
import org.springframework.stereotype.Component;
|
| 13 |
|
12 |
|
| 14 |
import java.time.LocalDate;
|
13 |
import java.time.LocalDate;
|
| 15 |
import java.time.LocalDateTime;
|
14 |
import java.time.LocalDateTime;
|
| 16 |
import java.util.Date;
|
15 |
import java.util.Date;
|
| 17 |
import java.util.LinkedHashMap;
|
16 |
import java.util.LinkedHashMap;
|
| 18 |
|
17 |
|
| 19 |
@Component
|
18 |
@Component
|
| 20 |
@ConditionalOnProperty(name = "scheduled", havingValue = "true", matchIfMissing = true)
|
19 |
//@ConditionalOnProperty(name = "scheduled", havingValue = "true", matchIfMissing = true)
|
| 21 |
public class ScheduledSkeleton {
|
20 |
public class ScheduledSkeleton {
|
| 22 |
|
21 |
|
| 23 |
private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
|
22 |
private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
|
| 24 |
|
23 |
|
| 25 |
@Autowired
|
24 |
@Autowired
|