1. 程式人生 > >動態載入Properties

動態載入Properties

Properties prop = new Properties();

String path = Thread.currentThread().getContextClassLoader().getResource("").getPath();

InputStream is = new FileInputStream(path + "/VoucherManagement.properties");