dragon-zhang commented on a change in pull request #2861:
URL: https://github.com/apache/incubator-shenyu/pull/2861#discussion_r804351365



##########
File path: 
shenyu-client/shenyu-client-http/shenyu-client-springcloud/src/main/java/org/apache/shenyu/client/springcloud/init/ContextRegisterListener.java
##########
@@ -28,35 +28,36 @@
 import org.apache.shenyu.register.common.dto.URIRegisterDTO;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.boot.web.context.WebServerInitializedEvent;
 import org.springframework.context.ApplicationListener;
-import org.springframework.context.event.ContextRefreshedEvent;
 import org.springframework.core.env.Environment;
 import org.springframework.lang.NonNull;
 
+import java.util.Optional;
 import java.util.Properties;
 import java.util.concurrent.atomic.AtomicBoolean;
 
 /**
  * The type Context register listener.
  */
-public class ContextRegisterListener implements 
ApplicationListener<ContextRefreshedEvent> {
-    
+public class ContextRegisterListener implements 
ApplicationListener<WebServerInitializedEvent> {

Review comment:
       when I use springboot 1.5.22.RELEASE and 
shenyu-spring-boot-starter-client-springcloud 2.4.2, springboot can not start.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to