InputStream is=Thread.currentThread().getContextClassLoader().getResourceAsStream("config/struts.properties");
Properties p=new Properties();
try {
p.load(is);
is.close();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println(p.get("a"));
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。