//引用的包
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.DOM4JConfiguration;
//程序片断
configuration = new DOM4JConfiguration(file);
int port = configuration.getConfiguration().getInt("socket.queue_port.port");
//xml文档
5012
阅读(861) | 评论(0) | 转发(0) |