Blame | Last modification | View Log | RSS feed
package com.smartdukaan.cron.config;import java.text.SimpleDateFormat;import java.util.Date;import java.util.HashMap;import java.util.Map;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.context.annotation.ComponentScan;import org.springframework.scheduling.annotation.Scheduled;import org.springframework.stereotype.Component;import com.spice.profitmandi.common.enumuration.SchemeType;import com.spice.profitmandi.common.web.client.RestClient;@Component@ComponentScan("com.smartdukaan.cron.*")@ComponentScan("com.spice.profitmandi.common.*")public class ScheduledTasks {private static final Logger log = LoggerFactory.getLogger(ScheduledTasks.class);private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");@Autowiredprivate RestClient restClient;/*@Scheduled(fixedRate = 5000)public void reportCurrentTime() {log.info("The time is now {}", dateFormat.format(new Date()));}*/}