3424672656 commented on code in PR #1061:
URL: https://github.com/apache/dubbo-samples/pull/1061#discussion_r1527705332


##########
2-advanced/dubbo-samples-service-discovery/dubbo-servicediscovery-migration/dubbo-servicediscovery-migration-provider2/src/main/java/org/apache/dubbo/demo/provider/Application.java:
##########
@@ -16,16 +16,15 @@
  */
 package org.apache.dubbo.demo.provider;
 
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-import java.util.concurrent.CountDownLatch;
+import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
 
+@EnableDubbo
+@SpringBootApplication
 public class Application {
-    public static void main(String[] args) throws Exception {
-        ClassPathXmlApplicationContext context = new 
ClassPathXmlApplicationContext("spring/dubbo-provider.xml");
-        context.start();
-
-        System.out.println("dubbo service started");
-        new CountDownLatch(1).await();
+    public static void main(String[] args) {
+        new EmbeddedZooKeeper(2181,false).start();

Review Comment:
   No, it won't. It's been through integration testing



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to