Repository navigation
Add @Order annotation to gatewayRestClientCustomizer bean - #4119
CheHyeonYeong wants to merge 1 commit into
Conversation
This allows users to add custom RestClientCustomizer beans that can override the requestFactory by running after the gateway customizer. Closes spring-cloud#3626 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: CheHyeonYeong <gusdudco6@naver.com>
cfa2cfa to
3e6a997
Compare
| } | ||
|
|
||
| @Test | ||
| void customRestClientCustomizerCanOverrideGatewayCustomizer() { |
There was a problem hiding this comment.
I dont see how this test verifies that additional RestClientCustomizer runs after the default one
|
Hi @CheHyeonYeong, are you still planning to update this one? I'd like to help get #3626 over the line. I think what @ryanjbaxter is after is a test where the ordering actually changes the outcome. Something like: define a If you don't have time for it, no problem at all. I'm happy to open a follow-up PR that builds on yours and keeps you as co-author. |
|
@Asyncronize |
Summary
@Order(0)annotation togatewayRestClientCustomizerbeanRestClientCustomizerbeans that run after the gateway customizer and can override therequestFactoryTest plan
@Orderannotation exists on the bean methodRestClientCustomizercan coexist with gateway customizerCloses #3626