动态加载Properties

Properties prop = new Properties();

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

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

猜你喜欢

转载自blog.csdn.net/zhangweibin123/article/details/82111480