# 以下为服务器、数据库信息 dbPort = localhost databaseName = mydb dbUserName = root dbPassword = root # 以下为数据库表信息 dbTable = mytable # 以下为服务器信息 ip = 192.168.0.9
Color=Red Name=Box Length=18 Width=7 Heigth=8
InputStream in = null;
Properties p = new Properties();
try {
in = new BufferedInputStream(new FileInputStream("box.properties"));
p.load(in);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Enumeration<Object> keys = p.keys();
while (keys.hasMoreElements()) {
String key = (String) keys.nextElement();
System.out.println(key + ":" + p.getProperty(key));
}
InputStream in;
ResourceBundle rb = null;
try {
in = new BufferedInputStream(new FileInputStream("box.properties"));
rb = new PropertyResourceBundle(in);
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (rb != null) {
Enumeration<String> keys = rb.getKeys();
while (keys.hasMoreElements()) {
String key = (String) keys.nextElement();
System.out.println(key + ":" + rb.getString(key));
}
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有