SpringCloud Alibaba——Ribbon attribute configuration and class configuration priority

1. Ribbon's attribute configuration and class configuration, which has higher priority

  • Class configuration priority is high

2. Interpretation of Ribbon's attribute configuration and class configuration priority source code

  • According to the ribbonRule method in the RibbonClientConfiguration class, class configuration is used first, then attribute configuration, and finally, if neither class configuration nor attribute configuration uses the ribbon's own configuration, as shown in the following figure:
    insert image description here

Guess you like

Origin blog.csdn.net/li1325169021/article/details/131755656