commit
c7715eecd8
@ -178,8 +178,9 @@ public class LocalDataSourceServiceImpl implements DataSourceService {
|
|||||||
* @param sqlFile sql
|
* @param sqlFile sql
|
||||||
* @throws Exception Exception
|
* @throws Exception Exception
|
||||||
*/
|
*/
|
||||||
public void execute(Connection conn, String sqlFile) throws Exception {
|
private void execute(Connection conn, String sqlFile) throws Exception {
|
||||||
Statement stmt = null;
|
Statement stmt = null;
|
||||||
|
try {
|
||||||
List<String> sqlList = loadSql(sqlFile);
|
List<String> sqlList = loadSql(sqlFile);
|
||||||
stmt = conn.createStatement();
|
stmt = conn.createStatement();
|
||||||
for (String sql : sqlList) {
|
for (String sql : sqlList) {
|
||||||
@ -188,10 +189,13 @@ public class LocalDataSourceServiceImpl implements DataSourceService {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LogUtil.defaultLog.info(e.getMessage());
|
LogUtil.defaultLog.info(e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
if (stmt != null) {
|
||||||
stmt.close();
|
stmt.close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static String getAppHome() {
|
public static String getAppHome() {
|
||||||
return appHome;
|
return appHome;
|
||||||
|
Loading…
Reference in New Issue
Block a user