异常捕获
This commit is contained in:
parent
86c475ecdf
commit
2e6143e31b
|
|
@ -31,7 +31,7 @@ import java.util.List;
|
|||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@Profile({"prod"})
|
||||
//@Profile({"prod"})
|
||||
public class SqlScriptServiceImpl extends ServiceImpl<SqlScriptMapper, SqlScript> implements SqlScriptService {
|
||||
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ public class SqlScriptServiceImpl extends ServiceImpl<SqlScriptMapper, SqlScript
|
|||
}
|
||||
markSqlAsExecuted(directory.getName(), sqlFile.getName(), sql);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (Exception e) {
|
||||
log.error("执行SQL文件异常:{}", sqlFile.getName());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue