Subversion Repositories SmartDukaan

Rev

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

Rev 30584 Rev 30616
Line 23... Line 23...
23
import org.springframework.context.annotation.Primary;
23
import org.springframework.context.annotation.Primary;
24
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
24
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
25
import org.springframework.core.io.ClassPathResource;
25
import org.springframework.core.io.ClassPathResource;
26
import org.springframework.mail.javamail.JavaMailSender;
26
import org.springframework.mail.javamail.JavaMailSender;
27
import org.springframework.mail.javamail.JavaMailSenderImpl;
27
import org.springframework.mail.javamail.JavaMailSenderImpl;
28
import org.springframework.scheduling.annotation.EnableScheduling;
-
 
29
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
28
import org.springframework.ui.velocity.VelocityEngineFactoryBean;
30
 
29
 
31
import java.io.FileInputStream;
30
import java.io.FileInputStream;
32
import java.io.IOException;
31
import java.io.IOException;
33
import java.time.LocalDate;
32
import java.time.LocalDate;
Line 36... Line 35...
36
import java.util.Properties;
35
import java.util.Properties;
37
import java.util.stream.Collectors;
36
import java.util.stream.Collectors;
38
 
37
 
39
@SpringBootApplication
38
@SpringBootApplication
40
//@EnableCaching
39
//@EnableCaching
41
@EnableScheduling
40
//@EnableScheduling
42
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
41
@ComponentScan("com.smartdukaan.cron.*, com.spice.profitmandi.common.*")
43
public class Application implements ApplicationRunner {
42
public class Application implements ApplicationRunner {
44
 
43
 
45
	private static final Logger LOGGER = LogManager.getLogger(Application.class);
44
	private static final Logger LOGGER = LogManager.getLogger(Application.class);
46
 
45
 
Line 727... Line 726...
727
				} catch (Exception e) {
726
				} catch (Exception e) {
728
					e.printStackTrace();
727
					e.printStackTrace();
729
				}
728
				}
730
			}
729
			}
731
 
730
 
-
 
731
			if (args.containsOption("fix-price-drops")) {
-
 
732
				runOnceTasks.fixPriceDrop();
-
 
733
 
-
 
734
			}
-
 
735
 
732
			System.exit(0);
736
			System.exit(0);
733
		}
737
		}
734
 
738
 
735
	}
739
	}
736
 
740