日期:2014-05-17 浏览次数:20969 次
public class dbUnit {
private static Properties dbConfig;
static {
try {
InputStream dbPropertiesIO = dbUnit.class.getResourceAsStream("/dbConfig.properties");
dbConfig.load(dbPropertiesIO);
dbPropertiesIO.close();
} catch (Exception e) {
throw new ExceptionInInitializerError(e);
}
}
public static String getPop() {
return dbConfig.getProperty("server");
}
}