List of usage examples for org.springframework.context.support PropertySourcesPlaceholderConfigurer PropertySourcesPlaceholderConfigurer
PropertySourcesPlaceholderConfigurer
From source file:springfox.documentation.swagger.configuration.SwaggerCommonConfiguration.java
@Bean public static PropertySourcesPlaceholderConfigurer swaggerProperties() { PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer(); propertySourcesPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(true); return propertySourcesPlaceholderConfigurer; }
From source file:home.luxoft.myswingiocwith_java_config_class.ApplicationConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:com.kixeye.chassis.support.test.eureka.metadata.MetadataCollectorConfiguration.java
@Bean public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:com.clicktravel.cheddar.server.runtime.config.PropertiesConfigurationBuilder.java
public static PropertySourcesPlaceholderConfigurer configurer(final boolean isDevProfileActive, final String servicePropertiesPath) { final String environmentPropertiesPath = "com.clicktravel.services.env.properties"; FeatureRegistry.init(environmentPropertiesPath); final PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer(); configurer.setIgnoreResourceNotFound(true); // Note : Later property resources in this list override earlier ones final List<Resource> resources = new LinkedList<>(); if (isDevProfileActive) { addResource(resources, "local-" + servicePropertiesPath); // TODO Remove when migrated to dev addResource(resources, "dev-" + servicePropertiesPath); } else {/*from w w w.ja v a2 s. c o m*/ addResource(resources, servicePropertiesPath); } addResource(resources, "com.clicktravel.cheddar.server.properties"); addResource(resources, environmentPropertiesPath); configurer.setLocations(resources.toArray(new Resource[0])); return configurer; }
From source file:ru.mystamps.web.config.TestContext.java
@Bean public static PropertySourcesPlaceholderConfigurer getPropertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer(); configurer.setLocations(new ClassPathResource("test/spring/test-data.properties"), new ClassPathResource("ru/mystamps/i18n/MailTemplates.properties")); return configurer; }
From source file:io.gravitee.gateway.env.EnvironmentConfiguration.java
@Bean public static PropertySourcesPlaceholderConfigurer properties( @Qualifier("graviteeProperties") Properties graviteeProperties) { PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer(); propertySourcesPlaceholderConfigurer.setProperties(graviteeProperties); propertySourcesPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(true); return propertySourcesPlaceholderConfigurer; }
From source file:org.swarmcom.jsynapse.JSynapseServer.java
@Bean(name = "customProps") public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:io.gravitee.repository.jdbc.config.JdbcRepositoryConfigurationTest.java
@Bean public static PropertySourcesPlaceholderConfigurer graviteePropertyPlaceholderConfigurer() { final PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer(); propertySourcesPlaceholderConfigurer.setProperties(graviteeProperties()); propertySourcesPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(true); return propertySourcesPlaceholderConfigurer; }
From source file:uk.ac.ebi.eva.pipeline.configuration.CommonConfiguration.java
@Bean private static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer(); Properties properties = new Properties(); properties.put("input.vcf", ""); properties.put("input.vcf.id", "1"); properties.put("input.vcf.aggregation", "NONE"); properties.put("input.study.type", "COLLECTION"); properties.put("input.study.name", "input.study.name"); properties.put("input.study.id", "1"); properties.put("input.pedigree", ""); properties.put("input.gtf", ""); properties.put("input.fasta", ""); properties.put("output.dir", "/tmp"); properties.put("output.dir.annotation", ""); properties.put("output.dir.statistics", "/tmp"); properties.put("statistics.overwrite", "false"); properties.put("db.hosts", "localhost:27017"); // properties.put("dbName", null); properties.put("db.collection.variants.name", "variants"); properties.put("db.collection.files.name", "files"); properties.put("db.collections.features.name", "features"); properties.put("config.db.read-preference", "primary"); properties.put("app.opencga.path", opencgaHome); properties.put("app.vep.path", ""); properties.put("app.vep.cache.path", ""); properties.put("app.vep.cache.version", ""); properties.put("app.vep.cache.species", ""); properties.put("app.vep.num-forks", "3"); properties.put("config.restartability.allow", false); configurer.setProperties(properties); return configurer; }
From source file:org.jbr.commons.container.java.JavaSpringContainerConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { final PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); pspc.setIgnoreUnresolvablePlaceholders(true); return pspc;/*from w ww.j ava2 s . co m*/ }