properties.load(In);//加载出配置文件
4.properties.getProperty("username");//根据相应的key值获取到配置文件中的定位方式和定位值。
5.具体代码如下: