Properties manipulation
public static JdbcMySqlUtil getJdbcUtil() throws IOException,
InstantiationException, IllegalAccessException,
ClassNotFoundException {
Properties prop = new Properties();
InputStream is = new FileInputStream(new File(
"resource/configure.properties"));
prop.load(is);
JdbcMySqlUtil jdbc = (JdbcMySqlUtil) Class.forName(
prop.getProperty("ClassName")).newInstance();
return jdbc;
}
InstantiationException, IllegalAccessException,
ClassNotFoundException {
Properties prop = new Properties();
InputStream is = new FileInputStream(new File(
"resource/configure.properties"));
prop.load(is);
JdbcMySqlUtil jdbc = (JdbcMySqlUtil) Class.forName(
prop.getProperty("ClassName")).newInstance();
return jdbc;
}
浙公网安备 33010602011771号