List of usage examples for org.springframework.context.support PropertySourcesPlaceholderConfigurer setIgnoreUnresolvablePlaceholders
public void setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders)
From source file:org.wso2.msf4j.spring.MSF4JSpringConfiguration.java
@Bean public static PropertySourcesPlaceholderConfigurer propertyConfigurer() { PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); pspc.setIgnoreUnresolvablePlaceholders(true); return pspc;/*w w w . jav a 2 s. c om*/ }
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:org.jbr.commons.container.java.JavaSpringContainerConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { final PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); pspc.setIgnoreUnresolvablePlaceholders(true); return pspc;//from ww w .java 2 s.c o m }
From source file:se.ivankrizsan.messagecowboy.MessageCowboyConfiguration.java
/** * This bean is required in order for the property values loaded by the * @PropertySource annotation to become available when injecting * property values using the @Value annotation. */// ww w .j av a 2 s . co m @Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer thePropertyPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer(); thePropertyPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(true); return thePropertyPlaceholderConfigurer; }
From source file:com.oneops.config.OneOpsConfig.java
/** * Property place holder config bean./* w ww .j a v a 2 s. com*/ * * @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:com.gondor.config.ApplicationContextConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { PropertySourcesPlaceholderConfigurer propertySource = new PropertySourcesPlaceholderConfigurer(); propertySource.setIgnoreUnresolvablePlaceholders(true); return propertySource; }
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: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:occi.config.SpringOcciConfig.java
@Bean public static PropertySourcesPlaceholderConfigurer properties() { PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); Resource[] resources = new ClassPathResource[] { new ClassPathResource("OCCI.properties") }; pspc.setLocations(resources);/*w w w . ja v a 2 s . c o m*/ pspc.setIgnoreUnresolvablePlaceholders(true); return pspc; }
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; }