Java读取和修改properties文件
方法说明:
1.Properties getProperties(String filepath):根据路径读取属性文件,返回Properties类;
2.void saveProperties(Properties prop,String filepath):保存属性到指定路径(如果文件不存在,请先创建File);
3.String getConfigValue(String key):获取指定Key的属性;
4.void setConfigValue(String key,String value):设置指定Key的属性值。
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic