|
|
|
@ -135,7 +135,9 @@ public class BaseApplication extends JFinalConfig {
|
|
|
|
|
|
|
|
|
|
//遍历sql目录下所有的sql文件
|
|
|
|
|
File sqlDir;
|
|
|
|
|
String basePath = PathKit.getRootClassPath();
|
|
|
|
|
//String basePath = PathKit.getRootClassPath();
|
|
|
|
|
String basePath = BaseApplication.class.getClassLoader().getResource(".").getPath();
|
|
|
|
|
//System.out.println("发现basePath=" + basePath);
|
|
|
|
|
sqlDir = new File(basePath + "/Sql");
|
|
|
|
|
File[] sqlFiles = sqlDir.listFiles();
|
|
|
|
|
for (File sqlFile : sqlFiles != null ? sqlFiles : new File[0]) {
|
|
|
|
|