解决api/version乱码问题

This commit is contained in:
heavyrain lee
2019-06-06 08:15:49 +08:00
parent 025873e66b
commit c9f320da31
3 changed files with 81 additions and 4 deletions
@@ -8,8 +8,7 @@
package win.liyufan.im;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.*;
import java.util.Properties;
public class GitRepositoryState {
@@ -64,7 +63,9 @@ public class GitRepositoryState {
public static GitRepositoryState getGitRepositoryState() throws IOException {
Properties properties = new Properties();
try {
properties.load(new FileInputStream("config/git.properties"));
InputStream inputStream = new FileInputStream("config/git.properties");
BufferedReader bf = new BufferedReader(new InputStreamReader(inputStream));
properties.load(bf);
} catch (IOException e) {
}