We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
feign-form/feign-form/src/main/java/feign/form/FormEncoder.java
Line 95 in 98e51d1
if bodyType‘s typeName is "java.util.map<java.lang.String, java.lang.Object>" cannot correct match
eg: @RequestLine("POST /user") @headers("Content-Type: application/x-www-form-urlencoded") void addUser (Map<String,Object> stringObjectMap);
The text was updated successfully, but these errors were encountered:
It also cannot recognize the org.springframework.util.MultiValueMap.
org.springframework.util.MultiValueMap
So for example this method will never send a body:
@PostMapping(consumes = MediaType.APPLICATION_FORM_URLENCODED) ResponseEntity<ObjectNode> requestForSomething(@RequestBody MultiValueMap<String, String> params);
The workaround for this is
@PostMapping(consumes = MediaType.APPLICATION_FORM_URLENCODED) ResponseEntity<ObjectNode> requestForSomething(@RequestBody Map<String, ? extends Object> params);
Sorry, something went wrong.
No branches or pull requests
feign-form/feign-form/src/main/java/feign/form/FormEncoder.java
Line 95 in 98e51d1
if bodyType‘s typeName is "java.util.map<java.lang.String, java.lang.Object>" cannot correct match
eg:
@RequestLine("POST /user")
@headers("Content-Type: application/x-www-form-urlencoded")
void addUser (Map<String,Object> stringObjectMap);
The text was updated successfully, but these errors were encountered: