【更新】数据库连接错误的信息打印

pull/22/head
xuyuxiang 2021-04-16 10:50:40 +08:00
parent 0a2cbf3629
commit 13ea45eeef
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ public class ConstantsInitListener implements ApplicationListener<ApplicationCon
);
}
} catch (SQLException | ClassNotFoundException e) {
log.error(">>> 读取数据库constants配置信息出错{}", e.getMessage());
log.error(">>> 读取数据库constants配置信息出错");
e.printStackTrace();
throw new ServiceException(SysConfigExceptionEnum.DATA_SOURCE_NOT_EXIST);
} finally {
DbUtil.close(conn);