From ad7c1aabfd08ba3226012e80dac6c23376b410e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasin=20Yu=20=28=E4=BA=8E=E9=BE=99=E8=B6=85=29?= Date: Fri, 3 Nov 2023 09:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=90=8E=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/source/DataSourceBeanPostProcessor.java | 2 +- .../caf/data/source/DataSourceFailureAnalyzer.java | 2 +- .../caf/event/CAFApplicationEventMulticaster.java | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/caf-boot-starters/caf-boot-starter-data/src/main/java/io/iec/edp/caf/data/source/DataSourceBeanPostProcessor.java b/caf-boot-starters/caf-boot-starter-data/src/main/java/io/iec/edp/caf/data/source/DataSourceBeanPostProcessor.java index 9d7b8541..8ac5e90e 100644 --- a/caf-boot-starters/caf-boot-starter-data/src/main/java/io/iec/edp/caf/data/source/DataSourceBeanPostProcessor.java +++ b/caf-boot-starters/caf-boot-starter-data/src/main/java/io/iec/edp/caf/data/source/DataSourceBeanPostProcessor.java @@ -36,7 +36,7 @@ public class DataSourceBeanPostProcessor implements BeanPostProcessor { if(StringUtils.isEmpty(propterties.getUrl())==null || StringUtils.isEmpty(propterties.getUsername()) || StringUtils.isEmpty(propterties.getPassword())){ - throw new DataSourceCreationException("数据源配置不完整:url、user或password为空",propterties); + throw new DataSourceCreationException("Incomplete data source configuration :url、user or password is null",propterties); } return bean; } diff --git a/caf-boot-starters/caf-boot-starter-data/src/main/java/io/iec/edp/caf/data/source/DataSourceFailureAnalyzer.java b/caf-boot-starters/caf-boot-starter-data/src/main/java/io/iec/edp/caf/data/source/DataSourceFailureAnalyzer.java index b956f1bd..e0bfddc3 100644 --- a/caf-boot-starters/caf-boot-starter-data/src/main/java/io/iec/edp/caf/data/source/DataSourceFailureAnalyzer.java +++ b/caf-boot-starters/caf-boot-starter-data/src/main/java/io/iec/edp/caf/data/source/DataSourceFailureAnalyzer.java @@ -30,7 +30,7 @@ public class DataSourceFailureAnalyzer extends AbstractFailureAnalyzer listener, ApplicationEvent event) { + if(log.isDebugEnabled()) { + if (event instanceof io.iec.edp.caf.commons.event.StartupCompletedEvent) + log.debug("Now new listener start invoke " + listener.getClass().getName()); + if (event instanceof io.iec.edp.caf.boot.event.startup.StartupCompletedEvent) + log.debug("Now old listener start invoke " + listener.getClass().getName()); + } + super.invokeListener(listener, event); + } } -- Gitee