grpc-spring icon indicating copy to clipboard operation
grpc-spring copied to clipboard

SPEL syntax

Open f1024557668 opened this issue 3 years ago • 4 comments

Could the @GrpcClient annotation will support the SPEL syntax?When I used the Spel,It showed me an error. image

f1024557668 avatar Sep 22 '22 09:09 f1024557668

Please start with what you wish to achieve and why.

ST-DDT avatar Sep 22 '22 10:09 ST-DDT

I need make the @GrpcClient's value be dynamic.It's value could be get from some function's return value.

------------------ 原始邮件 ------------------ 发件人: "yidongnan/grpc-spring-boot-starter" @.>; 发送时间: 2022年9月22日(星期四) 晚上6:02 @.>; @.@.>; 主题: Re: [yidongnan/grpc-spring-boot-starter] SPEL syntax (Issue #752)

Please start with what you wish to achieve and why.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

f1024557668 avatar Sep 22 '22 10:09 f1024557668

Why do you need to make the value of the config lookup key (@GrpcClient) dynamic and not the config itself?

ST-DDT avatar Sep 22 '22 11:09 ST-DDT

FFR: https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#expressions-bean-references

ST-DDT avatar Sep 22 '22 11:09 ST-DDT