使用Propertiesconfiguration这个类: Propertiesconfiguration config = new Propertiesconfiguration(); config.getString("属性名");