You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "xhqgogogo (GitHub)" <gi...@apache.org> on 2018/10/26 09:32:20 UTC
[GitHub] [incubator-dubbo-spring-boot-project] xhqgogogo opened issue #300: application.yml 使用环境变量时,dubbo-spring-boot-starter 无法准确读取到值
application.yml 使用环境变量时,dubbo-spring-boot-starter 无法准确读取到值,例如我把zookeeper的地址写成环境变量的引用( ${DUBBO_REGISTRY_ADDRESS} )时启动报错:
failed to connect to server ${DUBBO_REGISTRY_ADDRESS}:9090
应该这个时候springboot还没有初始化好yml的值?
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/300 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] mumubin commented on issue #300: application.yml 使用环境变量时,dubbo-spring-boot-starter 无法准确读取到值
Posted by "mumubin (GitHub)" <gi...@apache.org>.
同样的问题,再部署至docker时用${zookeeper.host},无法实现渲染
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/300 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #300: application.yml 使用环境变量时,dubbo-spring-boot-starter 无法准确读取到值
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
Please add Dubbo 2.6.5 in order to override indirectly dependencies:
```xml
<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.
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/300 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz closed issue #300: application.yml 使用环境变量时,dubbo-spring-boot-starter 无法准确读取到值
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
[ issue closed by mercyblitz ]
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/300 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org