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

This commit is contained in:
xuyuxiang 2021-04-16 10:50:40 +08:00
parent 0a2cbf3629
commit 13ea45eeef

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);