81,116
社区成员
发帖
与我相关
我的任务
分享
private static Properties jdbc = new Properties();
static{
FileInputStream in = null;
String path = Thread.currentThread().getContextClassLoader().getResource ("jdbc.properties").getPath();
in = new FileInputStream(path);
jdbc.load(in);
[/quote]
我爱你
private static Properties jdbc = new Properties();
static{
FileInputStream in = null;
String path = Thread.currentThread().getContextClassLoader().getResource ("jdbc.properties").getPath();
in = new FileInputStream(path);
jdbc.load(in);
然后重新编辑运行。