fix
parent
511f2f2b3d
commit
f0cc333429
|
@ -80,6 +80,7 @@ public class STableManager {
|
||||||
try {
|
try {
|
||||||
String tableName = clazz.getAnnotation(Table.class).name();
|
String tableName = clazz.getAnnotation(Table.class).name();
|
||||||
String path = SysUtil.getPath("conf", "server", tableName + ".txt");
|
String path = SysUtil.getPath("conf", "server", tableName + ".txt");
|
||||||
|
System.out.println("=============="+path);
|
||||||
File file = new File(path);
|
File file = new File(path);
|
||||||
String line;
|
String line;
|
||||||
List<String> key = new ArrayList<>();
|
List<String> key = new ArrayList<>();
|
||||||
|
|
|
@ -33,6 +33,8 @@ public class SysUtil {
|
||||||
StringBuilder path = new StringBuilder();
|
StringBuilder path = new StringBuilder();
|
||||||
if (SysUtil.isWindows()) {// Window 系统
|
if (SysUtil.isWindows()) {// Window 系统
|
||||||
path.append(new File(".").getCanonicalPath()).append(File.separator);
|
path.append(new File(".").getCanonicalPath()).append(File.separator);
|
||||||
|
}else {
|
||||||
|
path.append("..\\");
|
||||||
}
|
}
|
||||||
return path.toString();
|
return path.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue