String path="";
try {
path = this.getClass().getClassLoader().getResource(
"app.properties").toURI().getPath();
} catch (URISyntaxException e) {
e.printStackTrace();
}
prop = ReadProperties.readProperties(path);
String url =prop.getProperty("URL")+"../../../../index.do";
properties文件调用方法-java
最新推荐文章于 2024-09-28 16:35:05 发布