dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

dubbo:consumer

Open PJB0808 opened this issue 3 years ago • 1 comments

Call multiple services with YML file configuration in spring boot. How can version be set in YML in @ reference?

PJB0808 avatar Apr 29 '22 07:04 PJB0808

you can use the parameter you define in YML directly. such as ` @Configuration public static class ConsumerConfiguration {

    // myapp.version and  myapp.group have been defined in YML
    @Reference(group = "${myapp.group}", version = "${myapp.version}")
    private HelloService helloService;

}`

Edith-Wang avatar Jul 13 '22 01:07 Edith-Wang