You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/11/25 03:19:10 UTC

[GitHub] [dubbo] SmallSeals opened a new issue, #11022: Dubbo 3.1.2 +spring boot 启动服务后自动关

SmallSeals opened a new issue, #11022:
URL: https://github.com/apache/dubbo/issues/11022

   1. 依赖jar
   <dependency>
         <groupId>org.apache.dubbo</groupId>
         <artifactId>dubbo-spring-boot-starter</artifactId>
         <version>3.1.2</version>
     </dependency>
   <dependency>
         <groupId>org.apache.dubbo</groupId>
         <artifactId>dubbo-registry-nacos</artifactId>
         <version>3.1.2</version>
     </dependency>
   
     <dependency>
         <groupId>com.alibaba.boot</groupId>
         <artifactId>nacos-config-spring-boot-starter</artifactId>
         <version>0.2.12</version>
     </dependency>
   
   2. 启动类
   @SpringBootApplication
   @MapperScan(value = {"com.kb.saas.cloud.system.infra.mapper"})
   @EnableDubbo
   public class SystemServiceApplication {
       public static void main(String[] args) {
           SpringApplication.run(SystemServiceApplication.class, args);
   //        while (true){
   //
   //        }
       }
   }
   
   3. 若不加whlie(true) 的产生的日志
   2022-11-25 11:13:05.043  INFO 27848 --- [           main] c.k.s.c.system.SystemServiceApplication  : Started SystemServiceApplication in 6.507 seconds (JVM running for 7.473)
   2022-11-25 11:13:05.045  INFO 27848 --- [bboShutdownHook] o.apache.dubbo.config.DubboShutdownHook  :  [DUBBO] Run shutdown hook now., dubbo version: 3.1.2, current host: 192.168.0.107
   2022-11-25 11:13:05.045  WARN 27848 --- [       Thread-6] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Start destroying Publisher
   2022-11-25 11:13:05.045  INFO 27848 --- [bboShutdownHook] o.apache.dubbo.rpc.model.FrameworkModel  :  [DUBBO] Reset global default application from Dubbo Application[1.1](system-provider) to null, dubbo version: 3.1.2, current host: 192.168.0.107
   2022-11-25 11:13:05.045  WARN 27848 --- [       Thread-6] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Destruction of the end
   2022-11-25 11:13:05.045  WARN 27848 --- [       Thread-1] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Start destroying common HttpClient
   2022-11-25 11:13:05.045  INFO 27848 --- [bboShutdownHook] o.a.d.c.d.DefaultApplicationDeployer     :  [DUBBO] Dubbo Application[1.1](system-provider) is stopping., dubbo version: 3.1.2, current host: 192.168.0.107
   2022-11-25 11:13:05.045  WARN 27848 --- [       Thread-1] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Destruction of the end
   2022-11-25 11:13:05.046  INFO 27848 --- [ionShutdownHook] o.a.d.c.deploy.DefaultModuleDeployer     :  [DUBBO] Dubbo Module[1.1.1] is stopping., dubbo version: 3.1.2, current host: 192.168.0.107
   2022-11-25 11:13:05.048  INFO 27848 --- [ionShutdownHook] o.a.d.c.deploy.DefaultModuleDeployer     :  [DUBBO] Dubbo Module[1.1.1] has stopped., dubbo version: 3.1.2, current host: 192.168.0.107
   2022-11-25 11:13:05.049  INFO 27848 --- [ionShutdownHook] o.a.d.c.s.c.DubboSpringInitializer       :  [DUBBO] Unbind Dubbo Module[1.1.1] from spring container: org.springframework.beans.factory.support.DefaultListableBeanFactory@4b8137c5, dubbo version: 3.1.2, current host: 192.168.0.107
   2022-11-25 11:13:05.051  INFO 27848 --- [ionShutdownHook] .c.NacosValueAnnotationBeanPostProcessor : class com.alibaba.nacos.spring.context.annotation.config.NacosValueAnnotationBeanPostProcessor was destroying!
   2022-11-25 11:13:05.051  INFO 27848 --- [ionShutdownHook] AnnotationNacosInjectedBeanPostProcessor : class com.alibaba.nacos.spring.beans.factory.annotation.AnnotationNacosInjectedBeanPostProcessor was destroying!
   2022-11-25 11:13:05.052  INFO 27848 --- [bboShutdownHook] o.a.d.rpc.protocol.dubbo.DubboProtocol   :  [DUBBO] Destroying protocol [DubboProtocol] ..., dubbo version: 3.1.2, current host: 192.168.0.107
   2022-11-25 11:13:05.052  INFO 27848 --- [bboShutdownHook] o.a.d.rpc.protocol.dubbo.DubboProtocol   :  [DUBBO] Closing dubbo server: /[0:0:0:0:0:0:0:0]:20880, dubbo version: 3.1.2, current host: 192.168.0.107
   
   4. 服务注册后,自动关闭。
   
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] Dubbo 3.1.2 +spring boot 启动服务后自动关 [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty closed issue #11022: Dubbo 3.1.2 +spring boot 启动服务后自动关
URL: https://github.com/apache/dubbo/issues/11022


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #11022: Dubbo 3.1.2 +spring boot 启动服务后自动关

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #11022:
URL: https://github.com/apache/dubbo/issues/11022#issuecomment-1327173375

   https://github.com/apache/dubbo-samples/blob/master/dubbo-samples-spring-boot/dubbo-samples-spring-boot-provider/src/main/java/org/apache/dubbo/springboot/demo/provider/ProviderApplication.java
   
   这个应该是 Spring 配置的问题,我这边基于上面那个测试用例是可以跑通的
   
   ![image](https://user-images.githubusercontent.com/9292748/203940173-275a1013-fae0-4134-a242-0a069b634fc2.png)
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] Dubbo 3.1.2 +spring boot 启动服务后自动关 [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty commented on issue #11022:
URL: https://github.com/apache/dubbo/issues/11022#issuecomment-2026726203

   @SmallSeals   If you still have problems, please add samples and restart the issue at any time.


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org