diff --git a/sofa-boot-project/sofa-boot-core/healthcheck-sofa-boot/src/main/java/com/alipay/sofa/healthcheck/ReadinessCheckListener.java b/sofa-boot-project/sofa-boot-core/healthcheck-sofa-boot/src/main/java/com/alipay/sofa/healthcheck/ReadinessCheckListener.java index a70e5902c..2b472af67 100644 --- a/sofa-boot-project/sofa-boot-core/healthcheck-sofa-boot/src/main/java/com/alipay/sofa/healthcheck/ReadinessCheckListener.java +++ b/sofa-boot-project/sofa-boot-core/healthcheck-sofa-boot/src/main/java/com/alipay/sofa/healthcheck/ReadinessCheckListener.java @@ -31,7 +31,7 @@ import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationListener; import org.springframework.context.event.ContextRefreshedEvent; -import org.springframework.core.PriorityOrdered; +import org.springframework.core.Ordered; import org.springframework.core.env.Environment; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; @@ -44,7 +44,7 @@ * @author liangen * @author qilong.zql */ -public class ReadinessCheckListener implements ApplicationContextAware, PriorityOrdered, +public class ReadinessCheckListener implements ApplicationContextAware, Ordered, ApplicationListener, InitializingBean { private static Logger logger = HealthCheckLoggerFactory .getLogger(ReadinessCheckListener.class);