grpc-ecosystem / grpc-spring

Spring Boot starter module for gRPC framework.
https://grpc-ecosystem.github.io/grpc-spring/
Apache License 2.0
3.53k stars 826 forks source link

SPEL syntax #752

Open f1024557668 opened 2 years ago

f1024557668 commented 2 years ago

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

ST-DDT commented 2 years ago

Please start with what you wish to achieve and why.

f1024557668 commented 2 years ago

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: @.***>

ST-DDT commented 2 years ago

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

ST-DDT commented 2 years ago

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