Subversion Repositories SmartDukaan

Rev

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

Rev 21304 Rev 21342
Line 55... Line 55...
55
		activeProfile = System.getProperty("spring.profiles.active");
55
		activeProfile = System.getProperty("spring.profiles.active");
56
 
56
 
57
		if ("prod".equals(activeProfile)) {
57
		if ("prod".equals(activeProfile)) {
58
			resource = new ClassPathResource("/META-INF/prod.properties");
58
			resource = new ClassPathResource("/META-INF/prod.properties");
59
		} else if ("staging".equals(activeProfile)) {
59
		} else if ("staging".equals(activeProfile)) {
60
			resource = new ClassPathResource("/META-INF/test.properties");
60
			resource = new ClassPathResource("/META-INF/staging.properties");
61
		} else {
61
		} else {
62
			resource = new ClassPathResource("/META-INF/dev.properties");
62
			resource = new ClassPathResource("/META-INF/dev.properties");
63
		}
63
		}
64
 
64
 
65
		propertySourcesPlaceholderConfigurer.setLocation(resource);
65
		propertySourcesPlaceholderConfigurer.setLocation(resource);