From fd0375975abd0273fe35a1684f4b0e903ff71063 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Mon, 19 Jul 2021 10:16:42 +0800 Subject: [PATCH] class name --- .../dataSource/pool/util/DataSourceHandleUtil.java | 13 ------------- .../dataSource/pool/util/DriverClassUtil.java | 5 ++++- .../main/resources/i18n/messages_en_US.properties | 1 + .../main/resources/i18n/messages_zh_CN.properties | 3 ++- 4 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/pool/util/DataSourceHandleUtil.java diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/pool/util/DataSourceHandleUtil.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/pool/util/DataSourceHandleUtil.java deleted file mode 100644 index 981d87a8..00000000 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/pool/util/DataSourceHandleUtil.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.anjiplus.template.gaea.business.modules.dataSource.pool.util; - -/** - * Created by raodeming on 2021/3/19. - */ -public class DataSourceHandleUtil { - - - public static void mysqlConnection() { - - - } -} diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/pool/util/DriverClassUtil.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/pool/util/DriverClassUtil.java index ed2917f1..9c45c313 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/pool/util/DriverClassUtil.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/dataSource/pool/util/DriverClassUtil.java @@ -2,6 +2,7 @@ package com.anjiplus.template.gaea.business.modules.dataSource.pool.util; import com.anji.plus.gaea.exception.BusinessExceptionBuilder; import com.anjiplus.template.gaea.business.code.ResponseCode; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import java.util.HashMap; @@ -10,6 +11,7 @@ import java.util.Map; /** * Created by raodeming on 2021/4/19. */ +@Slf4j public final class DriverClassUtil { /** @@ -62,7 +64,8 @@ public final class DriverClassUtil { try { Class.forName(driverClass); } catch (ClassNotFoundException e) { - throw BusinessExceptionBuilder.build(ResponseCode.CLASS_NOT_FOUND, e.getMessage()); + log.error("error", e); + throw BusinessExceptionBuilder.build(ResponseCode.CLASS_NOT_FOUND); } } diff --git a/report-core/src/main/resources/i18n/messages_en_US.properties b/report-core/src/main/resources/i18n/messages_en_US.properties index 3e4b6601..c2a9cedf 100644 --- a/report-core/src/main/resources/i18n/messages_en_US.properties +++ b/report-core/src/main/resources/i18n/messages_en_US.properties @@ -43,3 +43,4 @@ Component.load.check.error={0} Component not load 4007=The report code does not allow duplication 4008=The set code does not allow duplication 4009=The source code does not allow duplication +4010=Can't auto find match driver class diff --git a/report-core/src/main/resources/i18n/messages_zh_CN.properties b/report-core/src/main/resources/i18n/messages_zh_CN.properties index 2a0f264b..e68da4df 100644 --- a/report-core/src/main/resources/i18n/messages_zh_CN.properties +++ b/report-core/src/main/resources/i18n/messages_zh_CN.properties @@ -1,7 +1,7 @@ 500=\u7CFB\u7EDF\u5F02\u5E38 200=\u64CD\u4F5C\u6210\u529F -User.password.error=\u5bc6\u7801\u4e0d\u6b63\u786e +User.password.error=\u5BC6\u7801\u4E0D\u6B63\u786E 1013=\u7F16\u7801\u4E0D\u5141\u8BB8\u91CD\u590D 2001=\u6587\u4EF6\u540D\u4E0D\u5141\u8BB8\u4E3A\u7A7A 2002=\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301 @@ -44,6 +44,7 @@ Component.load.check.error={0}\u7EC4\u4EF6\u672A\u52A0\u8F7D 4007=\u62A5\u8868\u7F16\u7801\u4E0D\u5141\u8BB8\u91CD\u590D 4008=\u6570\u636E\u96C6\u7F16\u7801\u4E0D\u5141\u8BB8\u91CD\u590D 4009=\u6570\u636E\u6E90\u7F16\u7801\u4E0D\u5141\u8BB8\u91CD\u590D +4010=\u9A71\u52A8\u5305\u4E0D\u5B58\u5728 6001={0} 7001=\u89E3\u6790\u5931\u8D25