@JsonProperty not working for Content-Type : application/x-www-form-urlencoded
问题 The REST API takes input content type : application/x-www-form-urlencoded, when it is mapped to a Java Object, like public class MyRequest { @JsonProperty("my_name") private String myName; @JsonProperty("my_phone") private String myPhone; //Getters and Setters of myName and myPhone. } In form input request, I am setting values of my_name and my_phone but the MyRequest object comes with myName and myPhone as null. I am using Jackson-annotations 2.3 jar Any Suggestions what may be wrong ? 回答1: