Topic: 如何读取.property配置文件 |
Print this page |
1.如何读取.property配置文件 | Copy to clipboard |
Posted by: wuyunlong Posted on: 2004-08-03 07:41 各位大侠,有谁知道如何读取.property配置的? |
2.Re:如何读取.property配置文件 [Re: wuyunlong] | Copy to clipboard |
Posted by: tangming Posted on: 2004-08-03 09:11 Properties.load(new FileInputStream(new File(xxxxx))); Properties.getProperty(String key); |
3.Re:如何读取.property配置文件 [Re: tangming] | Copy to clipboard |
Posted by: Longbow Posted on: 2004-08-03 10:12 Properties props = new Properties(); FileInputStream in = new FileInputStream("your property file name"); props.load(in); in.close(); |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |