2017-04-10 7 views

답변

0

구성 요소가 여기에 사용할 수있는 속성

예 :

Properties properties = new Properties(); 
InputStream input = null; 


public void configure() throws IOException { 

    CamelContext context = new DefaultCamelContext();  

    input = new FileInputStream("sample.properties"); 
    properties.load(input); 

    System.out.println("CITY IS" +properties.getProperty("wl.city")); 
    String city = properties.getProperty("wl.city");