List of usage examples for org.springframework.context.support PropertySourcesPlaceholderConfigurer PropertySourcesPlaceholderConfigurer
PropertySourcesPlaceholderConfigurer
From source file:br.com.hyperclass.snackbar.config.SnackBarConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:com.volho.example.todo.web.config.ServiceConfiguration.java
@Bean //resolve ${} in @Value public static PropertySourcesPlaceholderConfigurer propertyConfigInDev() { return new PropertySourcesPlaceholderConfigurer(); }
From source file:it.reply.orchestrator.config.Application.java
/** * Resolves Alien4Cloud ${...} placeholders within bean definition property values and @Value * annotations.//from w w w . j a va2 s . c o m * */ @Bean public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer(ResourceLoader resourceLoader) throws IOException { PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer(); propertyPlaceholderConfigurer.setProperties(Alien4CloudConfig.alienConfig(resourceLoader).getObject()); return propertyPlaceholderConfigurer; }
From source file:magoffin.matt.sobriquet.test.BaseTestConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer pspc() { PropertySourcesPlaceholderConfigurer result = new PropertySourcesPlaceholderConfigurer(); return result; }
From source file:ru.mystamps.web.config.ApplicationContext.java
@Bean public static PropertySourcesPlaceholderConfigurer getPropertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer(); configurer.setLocations(new ClassPathResource("sql/category_dao_queries.properties"), new ClassPathResource("sql/country_dao_queries.properties"), new ClassPathResource("sql/collection_dao_queries.properties"), new ClassPathResource("sql/image_dao_queries.properties"), new ClassPathResource("sql/user_dao_queries.properties"), new ClassPathResource("sql/users_activation_dao_queries.properties"), new ClassPathResource("sql/series_dao_queries.properties"), new ClassPathResource("sql/series_sales_dao_queries.properties"), new ClassPathResource("sql/suspicious_activity_dao_queries.properties"), new ClassPathResource("sql/transaction_participants_dao_queries.properties")); return configurer; }
From source file:aka.pirana.springsecurity.config.AppConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer placeHolderConfigurer() { System.out.println("aka.pirana.springsecurity.config.AppConfig.placeHolderConfigurer()"); return new PropertySourcesPlaceholderConfigurer(); }
From source file:org.shaigor.rest.retro.service.impl.WordsSereviceConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer ppc = new PropertySourcesPlaceholderConfigurer(); return ppc;/*from www . ja va2s . co m*/ }
From source file:ca.n4dev.dev.worktime.config.ApplicationConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer properties() { PropertySourcesPlaceholderConfigurer propertySources = new PropertySourcesPlaceholderConfigurer(); Resource[] resources = new ClassPathResource[] { new ClassPathResource("worktime.properties") }; propertySources.setLocations(resources); propertySources.setIgnoreUnresolvablePlaceholders(true); return propertySources; }
From source file:org.openhims.oauth2.configuration.PropertiesConfiguration.java
public PropertySourcesPlaceholderConfigurer getProperties() { PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); Resource[] resources = new Resource[] { new ClassPathResource("properties/application.properties"), new ClassPathResource("properties/server.properties") }; pspc.setLocations(resources);/* w ww . ja v a2 s . c om*/ pspc.setIgnoreUnresolvablePlaceholders(IGNORE_UNRESOLVABLE_PLACEHOLDERS); pspc.setIgnoreResourceNotFound(true); return pspc; }
From source file:com.ling.spring.environment.AppConfig.java
/** * ?bean@value???@Bean/* w w w.ja v a 2 s .c o m*/ * @return */ @Bean public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); }