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



##########
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:
       WebServerInitializedEvent  it is spring version?, if user is spring 
4.x,Does that not work?




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