diff --git a/adapter/adapter-common/src/main/java/com/dtp/adapter/common/DtpAdapterListener.java b/adapter/adapter-common/src/main/java/com/dtp/adapter/common/DtpAdapterListener.java index beae8a9a0b20f44c456e307b254ac0bc7cf6d925..cd7b2f6fa73e319cc2a0cd62022108cc80581ea2 100644 --- a/adapter/adapter-common/src/main/java/com/dtp/adapter/common/DtpAdapterListener.java +++ b/adapter/adapter-common/src/main/java/com/dtp/adapter/common/DtpAdapterListener.java @@ -13,6 +13,7 @@ import org.springframework.context.ApplicationEvent; import org.springframework.context.event.GenericApplicationListener; import org.springframework.core.ResolvableType; import org.springframework.lang.NonNull; +import org.springframework.lang.Nullable; import org.springframework.util.CollectionUtils; import static com.dtp.common.constant.DynamicTpConst.SCHEDULE_NOTIFY_ITEMS; @@ -52,6 +53,16 @@ public class DtpAdapterListener implements GenericApplicationListener { } } + /** + * backward compatible spring boot + * @param sourceType + * @return + */ + @Override + public boolean supportsSourceType(@Nullable Class sourceType) { + return true; + } + /** * Do collect thread pool stats. * @param dtpProperties dtpProperties