Example usage for org.springframework.boot.context.config ConfigFileApplicationListener setSearchLocations

List of usage examples for org.springframework.boot.context.config ConfigFileApplicationListener setSearchLocations

Introduction

In this page you can find the example usage for org.springframework.boot.context.config ConfigFileApplicationListener setSearchLocations.

Prototype

public void setSearchLocations(String locations) 

Source Link

Document

Set the search locations that will be considered as a comma-separated list.

Usage

From source file:org.obiba.rserver.Application.java

public static void main(String... args) throws Exception {
    ConfigFileApplicationListener listener = new ConfigFileApplicationListener();
    listener.setSearchLocations("classpath:,file:" + Resources.getRServerHomeDir() + "/conf/");

    SpringApplication springApp = new SpringApplication(Application.class);
    springApp.addListeners(listener);/*from   w  ww .j  a  v  a2 s  .co m*/
    springApp.run(args);
}