![JAR search and dependency download from the Maven repository](/logo.png)
com.yuxuan66.core.db.PropertiesManager Maven / Gradle / Ivy
package com.yuxuan66.core.db;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;
public class PropertiesManager {
private static Properties pro = new Properties();
private PropertiesManager() {
}
static {
try {
pro.load(PropertiesManager.class.getClassLoader().getResourceAsStream("jdbc.properties"));
} catch (IOException e) {
e.printStackTrace();
}
}
public static String getProperty(String key) {
return pro.getProperty(key);
}
public static String getProperty(String key, String defaultValue) {
return pro.getProperty(key, defaultValue);
}
public static Enumeration> propertiesNames() {
return pro.propertyNames();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy