dragon-zhang commented on a change in pull request #2861:
URL: https://github.com/apache/incubator-shenyu/pull/2861#discussion_r804352935
##########
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:
Think it can be implemented in combination with @ConditionalOnClass, I
will reimplement it later.
##########
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:
Think it can be implemented in combination with `@ConditionalOnClass`, I
will reimplement it later.
--
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]