Example usage for org.springframework.context.support PropertySourcesPlaceholderConfigurer setOrder

List of usage examples for org.springframework.context.support PropertySourcesPlaceholderConfigurer setOrder

Introduction

In this page you can find the example usage for org.springframework.context.support PropertySourcesPlaceholderConfigurer setOrder.

Prototype

public void setOrder(int order) 

Source Link

Document

Set the order value of this object for sorting purposes.

Usage

From source file:com.oneops.config.OneOpsConfig.java

/**
 * Property place holder config bean./*from  w  w  w. j  a va2 s  .c  o  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;
}