Subversion Repositories SmartDukaan

Rev

Rev 23724 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23724 Rev 23738
Line 17... Line 17...
17
 
17
 
18
@SpringBootApplication
18
@SpringBootApplication
19
@EnableCaching
19
@EnableCaching
20
@EnableScheduling
20
@EnableScheduling
21
@ComponentScan("com.smartdukaan.cron.*")
21
@ComponentScan("com.smartdukaan.cron.*")
22
@ComponentScan("com.spice.profitmandi.common.*")
22
@ComponentScan("com.spice.profitmandi.*")
23
public class Application {
23
public class Application {
24
	
24
	
25
	private static final Logger LOGGER=LogManager.getLogger(Application.class);
25
	private static final Logger LOGGER=LogManager.getLogger(Application.class);
26
	
26
	
27
	public static void main(String[] args) throws Throwable {
27
	public static void main(String[] args) throws Throwable {
28
		new SpringApplicationBuilder(ScheduledTasks.class, NagiosMonitorTasks.class).web(WebApplicationType.NONE).run(args);
28
		new SpringApplicationBuilder(Application.class).web(WebApplicationType.NONE).run(args);
29
	}
29
	}
30
 
30
 
31
	/*@Bean
31
	/*@Bean
32
	ServletWebServerFactory servletWebServerFactory() {
32
	ServletWebServerFactory servletWebServerFactory() {
33
		return new TomcatServletWebServerFactory();
33
		return new TomcatServletWebServerFactory();
34
	}*/
34
	}*/
35
	
35
	
36
	@Bean
36
	@Bean
37
	public PropertySourcesPlaceholderConfigurer propertyConfigurer1() {
37
	public static PropertySourcesPlaceholderConfigurer propertyConfigurer1() {
38
		PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer =  new PropertySourcesPlaceholderConfigurer();
38
		PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer =  new PropertySourcesPlaceholderConfigurer();
39
		propertySourcesPlaceholderConfigurer.setLocation(new ClassPathResource("/META-INF/env.properties"));
39
		propertySourcesPlaceholderConfigurer.setLocation(new ClassPathResource("/META-INF/env.properties"));
40
		return propertySourcesPlaceholderConfigurer;
40
		return propertySourcesPlaceholderConfigurer;
41
	}
41
	}
42
 
42