|
|
|
@ -7,8 +7,9 @@ import com.fr.log.FineLoggerFactory;
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.BufferedReader; |
|
|
|
|
import java.io.File; |
|
|
|
|
import java.io.InputStream; |
|
|
|
|
import java.io.FileReader; |
|
|
|
|
import java.util.Properties; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -92,9 +93,7 @@ public class ConfigHelper {
|
|
|
|
|
if (!ResourceIOUtils.exist(path)) { |
|
|
|
|
ResourceIOUtils.createFile(path); |
|
|
|
|
} |
|
|
|
|
try (InputStream is = ResourceIOUtils.read(path)){ |
|
|
|
|
properties.load(is); |
|
|
|
|
} |
|
|
|
|
properties.load(new BufferedReader(new FileReader(path))); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e, e.getMessage()); |
|
|
|
|
} |
|
|
|
|