-
Notifications
You must be signed in to change notification settings - Fork 1.9k
How to post url-encoded form in FeignClient from custom Feign.Builder? #2152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I change the @AllArgsConstructor
@Getter
class TestBody {
@FormProperty("test1")
private String test1;
@FormProperty("test2")
private String test2;
} And I find out that if I add @AllArgsConstructor
@Getter
class TestBody {
@FormProperty("test1")
private final String test1;
@FormProperty("test2")
private String test2;
} logs:
I wonder if this is a bug or is that how openfeign is designed? |
As I see PR was opened 2 weeks ago. OpenFeign/feign-form#120 It should fix your problem. |
Use the pull request mentioned above for this discussion. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, the problem in short is that when using a custom Feign.Builder, I cannot use FeignClient to post a url-encoded form, it will post an empty string.
In particular, I have a FeignClient:
And I create the instance by custom Feign.Builder:
When I call it like this:
I got these logs:
It seems that Feign post a empty body, is there anything I did wrong? Thank you in advance!
The text was updated successfully, but these errors were encountered: