back_recharge
gaojie 2019-01-23 12:08:45 +08:00
parent 511f2f2b3d
commit f0cc333429
2 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,7 @@ public class STableManager {
try {
String tableName = clazz.getAnnotation(Table.class).name();
String path = SysUtil.getPath("conf", "server", tableName + ".txt");
System.out.println("=============="+path);
File file = new File(path);
String line;
List<String> key = new ArrayList<>();

View File

@ -33,6 +33,8 @@ public class SysUtil {
StringBuilder path = new StringBuilder();
if (SysUtil.isWindows()) {// Window 系统
path.append(new File(".").getCanonicalPath()).append(File.separator);
}else {
path.append("..\\");
}
return path.toString();
}