Closed szbalx closed 5 years ago
i dont know
这个问题还是有出现?为什么加载的覆盖配置没有生效
是否配置了dubbo.config.override=true这个参数
Please add Dubbo 2.6.5 in order to override indirectly dependencies:
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>0.2.0</version>
</dependency>
<!-- Dubbo -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.5</version>
</dependency>
<!-- Spring Context Extras -->
<dependency>
<groupId>com.alibaba.spring</groupId>
<artifactId>spring-context-support</artifactId>
<version>1.0.2</version>
</dependency>
There was an issue about YAML format support in legacy Dubbo.
启动首先加载应用application.yml的配置,但是从spring cloud config读取的配置没有生效。日志如下:
2018-08-29 09:41:20.246 INFO 384584 --- [ restartedMain] a.b.d.c.e.WelcomeLogoApplicationListener :
:: Dubbo Spring Boot (v0.2.0) : https://github.com/apache/incubator-dubbo-spring-boot-project :: Dubbo (v2.6.2) : https://github.com/apache/incubator-dubbo :: Google group : dev@dubbo.incubator.apache.org
2018-08-29 09:41:20.249 INFO 384584 --- [ restartedMain] e.OverrideDubboConfigApplicationListener : Dubbo Config was overridden by externalized configuration {dubbo.application.name=act-api-comsumer, dubbo.consumer.timeout=20000, dubbo.protocol.name=dubbo, dubbo.protocol.port=20880, dubbo.registry.address=zookeeper://192.168.20.121:2181, dubbo.scan.basePackages=com.echinacoop.omp.service}
. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v2.0.4.RELEASE)
2018-08-29 09:42:00.181 INFO 384584 --- [ restartedMain] a.b.d.c.e.WelcomeLogoApplicationListener :
:: Dubbo Spring Boot (v0.2.0) : https://github.com/apache/incubator-dubbo-spring-boot-project :: Dubbo (v2.6.2) : https://github.com/apache/incubator-dubbo :: Google group : dev@dubbo.incubator.apache.org
2018-08-29 09:42:00.181 INFO 384584 --- [ restartedMain] e.OverrideDubboConfigApplicationListener : Dubbo Config was overridden by externalized configuration {dubbo.application.name=act-api-comsumer, dubbo.consumer.timeout=20000, dubbo.protocol.name=dubbo, dubbo.protocol.port=20880, dubbo.registry.address=zookeeper://192.168.20.125:2181, dubbo.scan.basePackages=com.echinacoop.omp.service} 2018-08-29 09:42:01.189 INFO 384584 --- [ restartedMain] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1535506921189, current=UP, previous=STARTING]