您好,官方文档说的是属性 > 代码优先级哈。
https://cloud.spring.io/spring-cloud-static/Greenwich.SR2/single/spring-cloud.html#_customizing_the_ribbon_client_by_setting_properties
Classes defined in these properties have precedence over beans defined by using @RibbonClient(configuration=MyRibbonConfig.class) and the defaults provided by Spring Cloud Netflix.
不过我没有亲测过。实际项目中应该尽量避免优先级这种东西。