【更新】去掉启动项目时数据库密码强校验,配置数据库信息错误提示细化

pull/22/head v1.3.31
小诺 2021-04-07 12:21:35 +08:00 committed by 15099670051
parent e16f357197
commit b5fe342bd0
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public class ConstantsInitListener implements ApplicationListener<ApplicationCon
ConstantContext.putConstant(CommonConstant.DATABASE_USER_NAME, dataSourceUsername);
// 如果有为空的配置,终止执行
if (ObjectUtil.hasEmpty(dataSourceUrl, dataSourceUsername, dataSourcePassword)) {
if (ObjectUtil.hasEmpty(dataSourceUrl, dataSourceUsername)) {
throw new ServiceException(SysConfigExceptionEnum.DATA_SOURCE_NOT_EXIST);
}

View File

@ -41,7 +41,7 @@ public enum SysConfigExceptionEnum implements AbstractBaseExceptionEnum {
/**
*
*/
DATA_SOURCE_NOT_EXIST(1, "数据库连接配置不存在请检查spring.datasource配置"),
DATA_SOURCE_NOT_EXIST(1, "数据库连接配置不存在请检查spring.datasource配置用户名密码是否正确"),
/**
*