List of usage examples for org.springframework.context.support PropertySourcesPlaceholderConfigurer PropertySourcesPlaceholderConfigurer
PropertySourcesPlaceholderConfigurer
From source file:com.kixeye.chassis.bootstrap.BootstrapConfiguration.java
@Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceHolderConfigurer() { PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer(); propertySourcesPlaceholderConfigurer.setNullValue("null"); return propertySourcesPlaceholderConfigurer; }
From source file:com.icm.taskmanager.web.web.SpringWebConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer propertyConfigInDev() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:com.gondor.config.ApplicationContextConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer propertySource = new PropertySourcesPlaceholderConfigurer(); propertySource.setIgnoreUnresolvablePlaceholders(true); return propertySource; }
From source file:cn.org.once.cstack.initializer.CloudUnitApplicationContext.java
@Bean @Profile("production") public static PropertySourcesPlaceholderConfigurer propertiesForProduction() throws Exception { String file = "application-production.properties"; PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); pspc.setLocations(getResources(file)); pspc.setIgnoreUnresolvablePlaceholders(true); pspc.setLocalOverride(true);/*from ww w . ja va 2s . c om*/ return pspc; }
From source file:fr.treeptik.cloudunit.initializer.CloudUnitApplicationContext.java
@Bean @Profile("integration") public static PropertySourcesPlaceholderConfigurer propertiesForIntegration() throws Exception { PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); Resource[] resources = new Resource[] { new ClassPathResource("application-integration.properties") }; pspc.setLocations(resources);/*from w w w. j av a2s.co m*/ pspc.setIgnoreUnresolvablePlaceholders(true); pspc.setLocalOverride(true); return pspc; }
From source file:com.logicaalternativa.ejemplomock.configuration.AppConfiguration.java
@Bean // It need to @Value annotation public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:com.github.cherimojava.orchidae.config.WebMvcConfig.java
@Bean public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer(); configurer.setLocation(new FileSystemResource(new File("./application.properties"))); return configurer; }
From source file:cn.org.once.cstack.initializer.CloudUnitApplicationContext.java
@Bean @Profile("vagrant-demo") public static PropertySourcesPlaceholderConfigurer propertiesForDemo() throws Exception { String file = "application-vagrant-demo.properties"; PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); pspc.setLocations(getResources(file)); pspc.setIgnoreUnresolvablePlaceholders(true); pspc.setLocalOverride(true);/*www . jav a 2s . c om*/ return pspc; }
From source file:com.vnomicscorp.spring.security.cas.authentication.redis.RedisStatelessTicketCacheIT.java
@Bean public PropertySourcesPlaceholderConfigurer propertyConfig() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:playground.app.Application.java
@Bean public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }