From 2d7bcac4e93080c83d6fb52c94abbb86c2d68c00 Mon Sep 17 00:00:00 2001 From: MengJinLong <1023149936@qq.com> Date: Sun, 26 Nov 2023 18:24:31 +0800 Subject: [PATCH] fix:Fix the problem that the dynamicThreadPoolBeforeCheckBean method in the BeforeCheckConfiguration class cannot validate parameters effectively in the config mode. --- .../java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threadpool/core/src/main/java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java b/threadpool/core/src/main/java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java index 20c2df30..d20573f6 100644 --- a/threadpool/core/src/main/java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java +++ b/threadpool/core/src/main/java/cn/hippo4j/core/enable/BeforeCheckConfiguration.java @@ -46,7 +46,7 @@ public class BeforeCheckConfiguration { // TODO test boolean checkFlag = properties != null && properties.getEnable(); if (checkFlag) { - String propertiesClassName = properties.getClass().getName(); + String propertiesClassName = properties.getClass().getSuperclass() == Object.class ? properties.getClass().getName() : properties.getClass().getSuperclass().getName(); switch (propertiesClassName) { case bootstrapPropertiesClassName: { String namespace = properties.getNamespace();