List of usage examples for org.springframework.context.support PropertySourcesPlaceholderConfigurer PropertySourcesPlaceholderConfigurer
PropertySourcesPlaceholderConfigurer
From source file:org.ng200.openolympus.MvcConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer properties() { final PropertySourcesPlaceholderConfigurer propertySources = new PropertySourcesPlaceholderConfigurer(); final Resource[] resources = new ClassPathResource[] { new ClassPathResource("spring.properties") }; propertySources.setLocations(resources); propertySources.setIgnoreUnresolvablePlaceholders(true); return propertySources; }
From source file:org.aksw.gerbil.web.config.RootConfig.java
static @Bean public PropertySourcesPlaceholderConfigurer myPropertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer p = new PropertySourcesPlaceholderConfigurer(); Resource[] resourceLocations = new Resource[] { new ClassPathResource("gerbil.properties"), }; p.setLocations(resourceLocations);/*from w w w.j a v a2s .co m*/ return p; }
From source file:se.kth.csc.config.ApplicationConfig.java
/** * The provider for placeholders that lets us use {@link org.springframework.beans.factory.annotation.Value} * annotations elsewhere in the application. *//*from w w w.j ava 2 s . c om*/ @Bean public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer(Environment environment) { PropertySourcesPlaceholderConfigurer ppc = new PropertySourcesPlaceholderConfigurer(); // Load properties from "settings.properties" ppc.setLocation(new ClassPathResource("/settings.properties")); log.info("Creating placeholder configurer based on \"settings.properties\" file"); return ppc; }
From source file:com.sequenceiq.ambari.shell.configuration.ShellConfiguration.java
@Bean static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:example.app.spring.boot.geode.server.BootGeodeServerApplication.java
@Bean static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:org.kew.rmf.reconciliation.config.MvcConfig.java
static @Bean public PropertySourcesPlaceholderConfigurer myPropertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer p = new PropertySourcesPlaceholderConfigurer(); Resource[] resourceLocations = new Resource[] { new ClassPathResource("/META-INF/spring/reconciliation-service.properties") }; p.setLocations(resourceLocations);/*w ww. j av a 2 s .co m*/ return p; }
From source file:com.thinkbiganalytics.jira.JiraSpringTestConfig.java
@Bean public PropertySourcesPlaceholderConfigurer placeHolderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:com.cch.aj.entryrecorder.common.AppConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer getPropertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:com.oneops.config.OneOpsConfig.java
/** * Property place holder config bean./*from www .j a va 2 s . co m*/ * * @return a pspc bean */ @Bean public static PropertySourcesPlaceholderConfigurer pspc() { logger.info("Initializing Property source placeholder config..."); PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); pspc.setIgnoreResourceNotFound(true); pspc.setIgnoreUnresolvablePlaceholders(true); pspc.setOrder(1); return pspc; }
From source file:org.spring.data.gemfire.app.main.SpringGemFireClient.java
@Bean
PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
}