dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Service,Reference注解什么时候支持占位符替换

Open wangzhangxing opened this issue 9 years ago • 6 comments

诸如版本号之类的参数,硬编码不方便啊

wangzhangxing avatar Nov 08 '17 07:11 wangzhangxing

I am providing a Service-SDK to our partner, and it requires a dynamic version specified by the partner's application. The best way is to provide the version via properties.

@com.alibaba.dubbo.config.annotation.Service(version = "${service.version}")

but it will fail and report: Caused by: java.lang.IllegalStateException: Invalid version="${service.version}" contain illegal charactor, only digit, letter, '-', '_' and '.' is legal.

namedlock avatar Jan 18 '18 07:01 namedlock

I also need this feature

stoneapple avatar Apr 27 '18 02:04 stoneapple

同问。。

jin82 avatar May 21 '18 11:05 jin82

Please check the latest version, I has been added recently.

ralf0131 avatar Jul 16 '18 07:07 ralf0131

I am providing a Service-SDK to our partner, and it requires a dynamic version specified by the partner's application. The best way is to provide the version via properties.

@com.alibaba.dubbo.config.annotation.Service(version = "${service.version}")

but it will fail and report: Caused by: java.lang.IllegalStateException: Invalid version="${service.version}" contain illegal charactor, only digit, letter, '-', '_' and '.' is legal.

你好,请问现在有解决方式了吗?

hylyLLL avatar Jun 01 '21 09:06 hylyLLL

2.6.3想通过占位符分组,有什么解决办法没

Wolf-ZR avatar Jan 26 '22 02:01 Wolf-ZR