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 2018/09/30 09:08:42 UTC

[GitHub] sunlightzy opened a new issue #289: 配置文件不支持spring占位符address: zookeeper://${zk.host}:${zk.port}解析

sunlightzy opened a new issue #289: 配置文件不支持spring占位符address: zookeeper://${zk.host}:${zk.port}解析
URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/289
 
 
   yml文件内容
   ```yaml
   zk:
     host: ${ZK_HOST:127.0.0.1}
     port: ${ZK_PORT:2181}
   dubbo:
     registry:
       address: zookeeper://${zk.host:127.0.0.1}:${zk.port:2181}
   ```
   无法正常解析,不会取环境中的值
   报错信息 `java.lang.NumberFormatException: For input string: "${zk.port}"`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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