fix:Fix the problem that the dynamicThreadPoolBeforeCheckBean method in the BeforeCheckConfiguration class cannot validate parameters effectively in the config mode.

pull/1521/head
MengJinLong 2 years ago
parent 265bf6ed70
commit 2d7bcac4e9

@ -46,7 +46,7 @@ public class BeforeCheckConfiguration {
// TODO test // TODO test
boolean checkFlag = properties != null && properties.getEnable(); boolean checkFlag = properties != null && properties.getEnable();
if (checkFlag) { if (checkFlag) {
String propertiesClassName = properties.getClass().getName(); String propertiesClassName = properties.getClass().getSuperclass() == Object.class ? properties.getClass().getName() : properties.getClass().getSuperclass().getName();
switch (propertiesClassName) { switch (propertiesClassName) {
case bootstrapPropertiesClassName: { case bootstrapPropertiesClassName: {
String namespace = properties.getNamespace(); String namespace = properties.getNamespace();

Loading…
Cancel
Save