You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "stoneapple (GitHub)" <gi...@apache.org> on 2020/03/25 11:05:30 UTC

[GitHub] [dubbo] stoneapple opened issue #5917: Dubbo 注解支持数字类型的占位符么?

我用2.6.7,使用springboot 注解配置模式开发,部分参数希望抽取到application.properties中配置,
通过 @Service(timeout="${svc.timeout}")来实现占位符。
编译报错了,这种有办法解决么

[ Full content available at: https://github.com/apache/dubbo/issues/5917 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [dubbo] DIscord010 commented on issue #5917: Dubbo 注解支持数字类型的占位符么?

Posted by "DIscord010 (GitHub)" <gi...@apache.org>.
字符串类型的属性,比如`version`是支持占位符赋值的。`timeout`是`int`类型,要想实现占位符赋值的话需要修改类型,但是感觉不是很有必要。

[ Full content available at: https://github.com/apache/dubbo/issues/5917 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org