spring-cloud-alibaba dubbo在spring cloud alibaba 中的全局配置

cygmwpex  于 2022-10-27  发布在  Spring
关注(0)|答案(2)|浏览(174)

怎样在spring cloud alibaba项目中配置dubbo的全局参数 ,就是在原生dubbo配置某一个服务的时候的那些参数,是不是也可以在spring cloud alibaba进行全局配置???
How to configure the global parameters of Dubbo in the spring cloud Alibaba project, that is, when the native Dubbo configures a service, can it also be configured globally in spring cloud Alibaba???

8cdiaqws

8cdiaqws1#

Please use the dubbo.* properties for Dubbo Configurations.

Refer here : https://mercyblitz.github.io/2018/01/18/Dubbo-%E5%A4%96%E9%83%A8%E5%8C%96%E9%85%8D%E7%BD%AE/#%E5%8D%95-dubbo-%E9%85%8D%E7%BD%AE-bean-%E7%BB%91%E5%AE%9A

lzfw57am

lzfw57am2#

您好,首先感谢您提供的参考文档。像spring cloud 中的很多配置都是全局性质的,而那个文档关于dubbo的外部化配置应该是针对每一个bean,dubbo的配置可以针对全局bean吗,这样的话,就不用每一个bean都进行配置了。
Hello, first of all, thank you for your reference documents. For example, many configurations in spring cloud are global in nature, and the external configuration of Dubbo in that document should be for each bean, and the configuration of Dubbo can be global Beans? In this way, you don't need to configure every bean

相关问题