java基础之PropertiesConfiguration

*、PropertiesConfiguration所在位置

包:org.apache.commons.configuration.*

*、PropertiesConfiguration读取配置文件中的信息

PropertiesConfiguration config = new PropertiesConfiguration("fileurl");
config .getStringArray("key");
and so on~
待定!!!

*、PropertiesConfiguration将信息写入配置文件中

PropertiesConfiguration config = new PropertiesConfiguration("fileurl");
config .setProperty("key","value");

猜你喜欢

转载自lbovinl.iteye.com/blog/2347622