【单选题】
A InputStream in = DALSysuser.class.getClassLoader().getResourceAsStream("db.properties"); Properties prop = new Properties();prop.load(in); url = prop.getProperty("url");
B InputStream in = DALSysuser.getResourceAsStream("db.properties"); Properties prop = new Properties(); prop.load(in); url = prop.getProperty("url");
C InputStream in = DALSysuser.class.getClassLoader().getResourceAsStream("db.properties"); Properties prop = new Properties(); url = prop.getProperty("url");
D InputStream in = DALSysuser.class.getClassLoader().getResourceAsStream("db.properties"); prop.load(in); url = prop.getProperty("url");
查看更多