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

pull/1526/head
yezi 11 months ago committed by GitHub
parent ca44328f45
commit ccccfd8060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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