2017-04-10 74 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");