Subversion Repositories SmartDukaan

Rev

Rev 30884 | Rev 30887 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30884 Rev 30886
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;
10
import org.springframework.scheduling.annotation.Scheduled;
11
import org.springframework.scheduling.annotation.Scheduled;
11
import org.springframework.stereotype.Component;
12
import org.springframework.stereotype.Component;
12
 
13
 
13
import java.time.LocalDate;
14
import java.time.LocalDate;
14
import java.time.LocalDateTime;
15
import java.time.LocalDateTime;
15
import java.util.Date;
16
import java.util.Date;
16
import java.util.LinkedHashMap;
17
import java.util.LinkedHashMap;
17
 
18
 
18
@Component
19
@Component
19
//@ConditionalOnProperty(prefix = "", name = "scheduled", havingValue = "true", matchIfMissing = true)
20
@ConditionalOnProperty(name = "scheduled", havingValue = "true", matchIfMissing = true)
20
public class ScheduledSkeleton {
21
public class ScheduledSkeleton {
21
 
22
 
22
	private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
23
	private static final Logger log = LogManager.getLogger(ScheduledSkeleton.class);
23
 
24
 
24
	@Autowired
25
	@Autowired