dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] sunlightzy opened a new issue #289: 配置文件不支持spring占位符address: zookeeper://${zk.host}:${zk.port}解析
Date Sun, 30 Sep 2018 09:08:42 GMT
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


Mime
View raw message